OSDN Git Service
(root)
/
coroid
/
libav_saccubus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
862be28
)
Check that js_vlc_bits from the extradata is in a valid range.
author
Benjamin Larsson
<banan@ludd.ltu.se>
Mon, 29 Jan 2007 10:42:36 +0000
(10:42 +0000)
committer
Benjamin Larsson
<banan@ludd.ltu.se>
Mon, 29 Jan 2007 10:42:36 +0000
(10:42 +0000)
Originally committed as revision 7756 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/cook.c
patch
|
blob
|
history
diff --git
a/libavcodec/cook.c
b/libavcodec/cook.c
index
8fe17bd
..
ef18c6c
100644
(file)
--- a/
libavcodec/cook.c
+++ b/
libavcodec/cook.c
@@
-1245,6
+1245,10
@@
static int cook_decode_init(AVCodecContext *avctx)
av_log(avctx,AV_LOG_ERROR,"unknown amount of samples_per_channel = %d, report sample!\n",q->samples_per_channel);
return -1;
}
+ if ((q->js_vlc_bits > 6) || (q->js_vlc_bits < 0)) {
+ av_log(avctx,AV_LOG_ERROR,"q->js_vlc_bits = %d, only >= 0 and <= 6 allowed!\n",q->js_vlc_bits);
+ return -1;
+ }
#ifdef COOKDEBUG
dump_cook_context(q);