Merge commit '484e015dc8b9983297e9269b406c65084daf4528' into release/2.4
* commit '484e015dc8b9983297e9269b406c65084daf4528':
cook: Make sure there is enough extradata
See: c9e4554329
Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@ -1058,7 +1058,7 @@ static av_cold int cook_decode_init(AVCodecContext *avctx)
|
|||||||
q->avctx = avctx;
|
q->avctx = avctx;
|
||||||
|
|
||||||
/* Take care of the codec specific extradata. */
|
/* 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");
|
av_log(avctx, AV_LOG_ERROR, "Necessary extradata missing!\n");
|
||||||
return AVERROR_INVALIDDATA;
|
return AVERROR_INVALIDDATA;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user