Files
FFmpeg/libavformat
Andreas Cadhalpun f7b4e46251 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:37:23 +01:00
..
2014-08-24 11:05:42 +00:00
2013-10-13 20:13:38 +00:00
2013-10-18 19:53:47 +02:00
2013-12-25 17:14:32 +01:00
2012-12-04 11:25:46 +00:00
2012-12-04 11:25:46 +00:00
2014-10-20 10:38:38 +01:00
2013-10-06 19:36:53 +02:00
2015-03-06 22:26:53 +01:00
2012-11-19 10:19:50 +01:00
2013-01-01 19:29:04 +01:00
2014-08-30 15:50:22 +00:00
2015-02-26 02:06:10 +01:00
2014-08-24 11:05:42 +00:00
2014-06-18 14:55:28 +02:00
2014-04-16 19:41:41 +02:00
2014-08-24 11:05:42 +00:00
2015-10-09 21:44:11 +02:00
2014-08-24 11:05:42 +00:00
2012-12-05 13:01:22 +00:00
2012-12-05 13:01:22 +00:00
2014-07-03 15:46:26 +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-03-04 23:48:41 +01:00
2013-11-13 22:56:18 +01:00
2015-01-30 09:33:49 +00:00
2015-07-20 04:43:39 +02:00
2014-12-18 23:27:07 +01:00
2014-08-24 11:05:42 +00:00
2015-11-26 01:37:33 +01:00
2013-12-25 17:38:29 +01:00
2014-12-20 00:17:43 +01:00
2015-02-21 23:37:24 +02:00
2014-10-21 03:52:27 +02:00
2015-01-18 00:36:56 +01:00
2015-02-04 13:10:53 +00:00
2015-02-01 20:00:10 +01:00
2012-12-28 21:50:42 +00:00
2014-09-30 20:21:14 +02:00
2014-10-22 23:12:38 +02:00
2014-03-08 12:36:57 +01:00
2015-01-11 00:35:01 +01:00
2015-01-11 00:35:01 +01:00
2013-01-07 10:08:38 +00:00
2014-08-24 11:05:42 +00:00