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-10-30 03:02:41 +01:00
2015-11-03 12:26:09 +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-10 22:06:26 +01:00
2015-10-04 01:37:31 +02:00
2015-10-29 21:26:43 +01:00
2015-11-21 21:03:51 +01:00
2014-08-24 11:05:42 +00:00
2015-05-26 19:54:41 +02:00
2015-05-31 19:04:52 +02:00
2014-07-13 19:18:31 +02:00
2014-07-13 19:18:31 +02:00
2014-08-15 22:47:45 +02:00
2015-11-30 10:58:46 -05:00
2015-11-06 13:45:50 +01:00
2015-06-07 21:55:46 +02:00
2015-11-20 20:52:37 +01:00
2015-09-01 13:35:37 +02:00
2014-10-21 03:52:27 +02:00
2015-10-26 23:24:45 -07:00
2014-03-08 12:36:57 +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
2015-01-11 00:35:01 +01:00
2015-01-11 00:35:01 +01:00
2015-10-20 09:41:11 +02:00
2015-10-25 11:05:56 +01:00
2015-10-25 17:37:17 +01:00