diff options
author | Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com> | 2015-12-14 22:11:55 +0100 |
---|---|---|
committer | Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com> | 2015-12-15 22:43:25 +0100 |
commit | ecf63b7cc24b9fd3e6d604313325dd1ada4db662 (patch) | |
tree | 5ceebe73fc547a3a5ca38cb6488f3455df8d1fd9 /libavcodec/tak_parser.c | |
parent | 09d84e00bd88f9ce191e1fe189c0a0ba8d70c826 (diff) | |
download | ffmpeg-ecf63b7cc24b9fd3e6d604313325dd1ada4db662.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>
Diffstat (limited to 'libavcodec/tak_parser.c')
0 files changed, 0 insertions, 0 deletions