[FFmpeg-cvslog] r23744 - trunk/libavcodec/flacenc.c

mru subversion
Wed Jun 23 23:22:57 CEST 2010


Author: mru
Date: Wed Jun 23 23:22:56 2010
New Revision: 23744

Log:
flacenc: convert VLA to fixed size

Modified:
   trunk/libavcodec/flacenc.c

Modified: trunk/libavcodec/flacenc.c
==============================================================================
--- trunk/libavcodec/flacenc.c	Wed Jun 23 22:45:36 2010	(r23743)
+++ trunk/libavcodec/flacenc.c	Wed Jun 23 23:22:56 2010	(r23744)
@@ -787,7 +787,7 @@ static int encode_residual(FlacEncodeCon
        omethod == ORDER_METHOD_4LEVEL ||
        omethod == ORDER_METHOD_8LEVEL) {
         int levels = 1 << omethod;
-        uint32_t bits[levels];
+        uint32_t bits[1 << ORDER_METHOD_8LEVEL];
         int order;
         int opt_index = levels-1;
         opt_order = max_order-1;



More information about the ffmpeg-cvslog mailing list