Files
FFmpeg/libavformat
Andreas Cadhalpun 8b30abd020 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>
(cherry picked from commit ecf63b7cc2)
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
2015-12-17 21:20:34 +01:00
..
2015-06-08 03:36:22 +02:00
2015-06-18 22:09:01 +02:00
2015-06-18 22:09:01 +02:00
2015-10-15 14:41:32 +02:00
2015-10-09 21:30:46 +02:00
2015-06-08 03:36:22 +02:00
2015-11-12 02:55:46 +01:00
2015-11-26 01:37:12 +01:00
2015-06-07 21:55:46 +02:00