Class: EhbrsRubyUtils::Videos2::Unsupported::Checks::CodecExtraUnsupported

Inherits:
Object
  • Object
show all
Defined in:
lib/ehbrs_ruby_utils/videos2/unsupported/checks/codec_extra_unsupported.rb

Constant Summary collapse

TYPE =
:stream

Instance Method Summary collapse

Instance Method Details

#check(track) ⇒ Object



14
15
16
17
18
19
# File 'lib/ehbrs_ruby_utils/videos2/unsupported/checks/codec_extra_unsupported.rb', line 14

def check(track)
  return nil unless track.codec_name == codec
  return nil unless track.codec_tag_string.downcase.include?(extra.downcase)

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

#fixObject



21
22
23
# File 'lib/ehbrs_ruby_utils/videos2/unsupported/checks/codec_extra_unsupported.rb', line 21

def fix
  ::EhbrsRubyUtils::Videos2::Unsupported::Fixes::SupportedCodec.new
end