[Ffmpeg-cvslog] r7756 - trunk/libavcodec/cook.c
banan
subversion
Mon Jan 29 11:42:36 CET 2007
Author: banan
Date: Mon Jan 29 11:42:36 2007
New Revision: 7756
Modified:
trunk/libavcodec/cook.c
Log:
Check that js_vlc_bits from the extradata is in a valid range.
Modified: trunk/libavcodec/cook.c
==============================================================================
--- trunk/libavcodec/cook.c (original)
+++ trunk/libavcodec/cook.c Mon Jan 29 11:42:36 2007
@@ -1245,6 +1245,10 @@
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);
More information about the ffmpeg-cvslog
mailing list