You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
cook: Make sure there is enough extradata
At least 8 bytes are needed (Mono audio). Bug-Id: CID 741418 CC: libav-stable@libav.org
This commit is contained in:
committed by
Vittorio Giovara
parent
30b8eb0f87
commit
299d8ab104
@@ -1051,7 +1051,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