Browse Source

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>
tags/n2.4.7
Michael Niedermayer 11 years ago
parent
commit
6f14434218
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/cook.c

+ 1
- 1
libavcodec/cook.c View File

@@ -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…
Cancel
Save