changeset 10500:6d653bb57c58 libavcodec

Use enum FrameType as parameter to construct_perm_table().
author cehoyos
date Sun, 08 Nov 2009 23:37:59 +0000
parents c5c25c9b6644
children bdf4a9ca162a
files twinvq.c
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/twinvq.c	Sun Nov 08 14:54:43 2009 +0000
+++ b/twinvq.c	Sun Nov 08 23:37:59 2009 +0000
@@ -1014,6 +1014,7 @@
     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 @@
         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)