Merge commit '299d8ab104'
* commit '299d8ab104': cook: Make sure there is enough extradata See:c9e4554329Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
commit
1db2d39dfd
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue