Files
FFmpeg/libavformat
Andreas Cadhalpun ecf63b7cc2 ffm: reject invalid codec_id and codec_type
A negative codec_id cannot be handled by the found_decoder API of
AVStream->info: if the codec_id is not recognized, found_decoder is set
to -codec_id, which has to be '<0' according to the API documentation.

This can cause NULL pointer dereferencing in try_decode_frame.

Also make sure the codec_type matches the expected one for codec_id.

Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
2015-12-15 22:43:25 +01:00
..
2015-11-12 04:39:14 +01:00
2015-11-12 04:39:14 +01:00
2015-11-30 10:58:46 -05:00
2015-11-21 21:03:51 +01:00
2015-11-30 10:58:46 -05:00
2015-11-20 20:52:37 +01:00
2015-12-13 09:41:41 +01:00
2015-11-12 04:39:14 +01:00
2015-11-23 18:34:52 -08:00