git.videolan.org
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
30b8eb0
)
cook: Make sure there is enough extradata
author
Luca Barbato
<lu_zero@gentoo.org>
Sun, 23 Nov 2014 15:09:05 +0000
(16:09 +0100)
committer
Vittorio Giovara
<vittorio.giovara@gmail.com>
Mon, 24 Nov 2014 01:30:15 +0000
(
01:30
+0000)
At least 8 bytes are needed (Mono audio).
Bug-Id: CID 741418
CC: libav-stable@libav.org
libavcodec/cook.c
patch
|
blob
|
history
diff --git
a/libavcodec/cook.c
b/libavcodec/cook.c
index
056c7d9
..
8c2fab7
100644
(file)
--- a/
libavcodec/cook.c
+++ b/
libavcodec/cook.c
@@
-1051,7
+1051,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;
}