Class: EhbrsRubyUtils::Videos2::Unsupported::Checks::CodecUnsupported

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

Constant Summary collapse

TYPE =
:stream

Instance Method Summary collapse

Instance Method Details

#check(track) ⇒ Object



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

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

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

#fixObject



20
21
22
# File 'lib/ehbrs_ruby_utils/videos2/unsupported/checks/codec_unsupported.rb', line 20

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