[FFmpeg-cvslog] r20480 - trunk/libavcodec/twinvq.c

cehoyos subversion
Mon Nov 9 00:37:59 CET 2009


Author: cehoyos
Date: Mon Nov  9 00:37:59 2009
New Revision: 20480

Log:
Use enum FrameType as parameter to construct_perm_table().

Modified:
   trunk/libavcodec/twinvq.c

Modified: trunk/libavcodec/twinvq.c
==============================================================================
--- trunk/libavcodec/twinvq.c	Sun Nov  8 23:47:10 2009	(r20479)
+++ trunk/libavcodec/twinvq.c	Mon Nov  9 00:37:59 2009	(r20480)
@@ -1014,6 +1014,7 @@ static av_cold void init_bitstream_param
     int bsize_no_main_cb[3];
     int bse_bits[3];
     int i;
+    enum FrameType frametype;
 
     for (i = 0; i < 3; i++)
         // +1 for history usage switch
@@ -1062,8 +1063,8 @@ static av_cold void init_bitstream_param
         tctx->length_change[i] = num_rounded_up;
     }
 
-    for (i = 0; i < 4; i++)
-        construct_perm_table(tctx, i);
+    for (frametype = FT_SHORT; frametype <= FT_PPC; frametype++)
+        construct_perm_table(tctx, frametype);
 }
 
 static av_cold int twin_decode_init(AVCodecContext *avctx)



More information about the ffmpeg-cvslog mailing list