Commit 1db2d39d authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit '299d8ab1'

* commit '299d8ab1':
  cook: Make sure there is enough extradata

See: c9e45543Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents 4fecf170 299d8ab1
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment