Sha256: e8e2c29196cdcdbf88bc83978206e5a4379880b764936e41a8af6586d7096c56

Contents?: true

Size: 558 Bytes

Versions: 31

Compression:

Stored size: 558 Bytes

Contents

# frozen_string_literal: true

require 'ehbrs/videos/unsupported/fixes/supported_codec'

module Ehbrs
  module Videos
    module Unsupported
      module Checks
        class CodecUnsupported
          TYPE = :stream

          common_constructor :codec

          def check(track)
            return nil unless track.codec_name == codec

            "Unsupported codec \"#{codec}\" for track #{track}"
          end

          def fix
            ::Ehbrs::Videos::Unsupported::Fixes::SupportedCodec.new
          end
        end
      end
    end
  end
end

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
ehbrs-tools-0.25.0 lib/ehbrs/videos/unsupported/checks/codec_unsupported.rb
ehbrs-tools-0.24.0 lib/ehbrs/videos/unsupported/checks/codec_unsupported.rb
ehbrs-tools-0.23.1 lib/ehbrs/videos/unsupported/checks/codec_unsupported.rb
ehbrs-tools-0.23.0 lib/ehbrs/videos/unsupported/checks/codec_unsupported.rb
ehbrs-tools-0.22.0 lib/ehbrs/videos/unsupported/checks/codec_unsupported.rb
ehbrs-tools-0.21.0 lib/ehbrs/videos/unsupported/checks/codec_unsupported.rb
ehbrs-tools-0.20.0 lib/ehbrs/videos/unsupported/checks/codec_unsupported.rb
ehbrs-tools-0.19.0 lib/ehbrs/videos/unsupported/checks/codec_unsupported.rb
ehbrs-tools-0.18.0 lib/ehbrs/videos/unsupported/checks/codec_unsupported.rb
ehbrs-tools-0.17.0 lib/ehbrs/videos/unsupported/checks/codec_unsupported.rb
ehbrs-tools-0.16.5 lib/ehbrs/videos/unsupported/checks/codec_unsupported.rb