aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/c93.c
diff options
context:
space:
mode:
authorAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>2015-12-14 22:11:55 +0100
committerAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>2015-12-17 21:20:34 +0100
commit8b30abd0201a24f57f786a3225194d37de0afff5 (patch)
tree6192cfff9bc041b390add874f3a1b8b140d336f1 /libavcodec/c93.c
parent435b0ab96977f92b34e84cc1ab316ce6448e987d (diff)
downloadffmpeg-8b30abd0201a24f57f786a3225194d37de0afff5.tar.gz
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 ecf63b7cc24b9fd3e6d604313325dd1ada4db662) Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Diffstat (limited to 'libavcodec/c93.c')
0 files changed, 0 insertions, 0 deletions