diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-11-24 13:16:37 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-11-24 13:18:41 +0100 |
commit | 1db2d39dfddacb50546c9cdc1071f42146b23fa6 (patch) | |
tree | ab28406be58fd4f403b28ef2793fb55377fcdff9 | |
parent | 4fecf170d75daf24bab3b80e45904089926bf3c1 (diff) | |
parent | 299d8ab104fb350254eb2e6d9ecdce892a2a55b1 (diff) | |
download | ffmpeg-1db2d39dfddacb50546c9cdc1071f42146b23fa6.tar.gz |
Merge commit '299d8ab104fb350254eb2e6d9ecdce892a2a55b1'
* commit '299d8ab104fb350254eb2e6d9ecdce892a2a55b1':
cook: Make sure there is enough extradata
See: c9e455432988acd414990ba92f782b8e3c4b6aea
Merged-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavcodec/cook.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/cook.c b/libavcodec/cook.c index 0cc01d05c9..cfbce2a58a 100644 --- a/libavcodec/cook.c +++ b/libavcodec/cook.c @@ -1058,7 +1058,7 @@ static av_cold int cook_decode_init(AVCodecContext *avctx) q->avctx = avctx; /* Take care of the codec specific extradata. */ - if (extradata_size <= 0) { + if (extradata_size < 8) { av_log(avctx, AV_LOG_ERROR, "Necessary extradata missing!\n"); return AVERROR_INVALIDDATA; } |