aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/h264qpel_template.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 20:04:25 +0100
commit0b24a0e0f12f0a57a54bfbbf9637855ef8b2f698 (patch)
treee3a11ae76a784035afedd08bb9874b42a4d3404e /libavcodec/h264qpel_template.c
parenta79a5c32f92400fda48e2b6c5372a0d49ace4f7a (diff)
downloadffmpeg-0b24a0e0f12f0a57a54bfbbf9637855ef8b2f698.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/h264qpel_template.c')
0 files changed, 0 insertions, 0 deletions