diff options
author | Andreas Cadhalpun <[email protected]> | 2015-12-14 22:11:55 +0100 |
---|---|---|
committer | Andreas Cadhalpun <[email protected]> | 2015-12-17 21:20:34 +0100 |
commit | 8b30abd0201a24f57f786a3225194d37de0afff5 (patch) | |
tree | 6192cfff9bc041b390add874f3a1b8b140d336f1 /libavcodec/libwebpenc_common.h | |
parent | 435b0ab96977f92b34e84cc1ab316ce6448e987d (diff) |
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 <[email protected]>
Signed-off-by: Andreas Cadhalpun <[email protected]>
(cherry picked from commit ecf63b7cc24b9fd3e6d604313325dd1ada4db662)
Signed-off-by: Andreas Cadhalpun <[email protected]>
Diffstat (limited to 'libavcodec/libwebpenc_common.h')
0 files changed, 0 insertions, 0 deletions