Commit Graph

5 Commits

Author SHA1 Message Date
trav90 95a8f149db Have specialized AVCodecContext initialization
A common initialization procedure is too restrictive, and we end up setting up audio configuration for video decoding and vice-versa.
2018-07-25 06:22:41 +08:00
trav90 6f315285f9 Fix VP9 decoding with recent version of libav.
Recent libav do not require a codec parser to decode VP9.
2018-07-25 06:21:46 +08:00
trav90 eb5ceada68 Parse raw data to identify single frames before decoding
A VP9 or VP9 packet may contains alternate frames. They need to be fed separately to the FFmpeg decoder.
2018-07-25 06:21:40 +08:00
trav90 0f0d8c765b Have FFMpegDecoderModule properly return if a codec is supported
Our current PlatformDecoderModule::SupportsMimeType implementations only check for support by performing a lookup on the mimetype as a strink and always assume that the underlying decoder is usable and is working.

This is an invalid assumption; especially with the FFMpeg decoder that may not be compiled with some particular codec support (like if it was compiled with --disable-nonfree).
2018-07-25 06:21:06 +08:00
trav90 538539f5c3 Move PlatformDecoderModule outside fmp4 2018-07-25 01:29:11 +08:00