[FFmpeg-soc] [soc]: r4413 - wmapro/wma3dec.c

faust3 subversion at mplayerhq.hu
Thu Jun 11 10:11:44 CEST 2009


Author: faust3
Date: Thu Jun 11 10:11:44 2009
New Revision: 4413

Log:
use a for loop for decoding the smaller coefficient vectors

Modified:
   wmapro/wma3dec.c

Modified: wmapro/wma3dec.c
==============================================================================
--- wmapro/wma3dec.c	Thu Jun 11 10:05:31 2009	(r4412)
+++ wmapro/wma3dec.c	Thu Jun 11 10:11:44 2009	(r4413)
@@ -813,8 +813,7 @@ static int wma_decode_coeffs(WMA3DecodeC
                        ((FF_WMA3_HUFF_VEC4_MAXBITS+VLCBITS-1)/VLCBITS));
 
         if ( idx == FF_WMA3_HUFF_VEC4_SIZE - 1 ) {
-            i = 0;
-            while (i < 4) {
+            for (i=0 ; i < 4 ; i+= 2) {
                 idx = get_vlc2(&s->gb, vec2_vlc.table, VLCBITS,
                               ((FF_WMA3_HUFF_VEC2_MAXBITS+VLCBITS-1)/VLCBITS));
                 if ( idx == FF_WMA3_HUFF_VEC2_SIZE - 1 ) {
@@ -830,7 +829,6 @@ static int wma_decode_coeffs(WMA3DecodeC
                     vals[i] = (ff_wma3_symbol_to_vec2[idx] >> 4) & 0xF;
                     vals[i+1] = ff_wma3_symbol_to_vec2[idx] & 0xF;
                 }
-                i += 2;
             }
         }else{
              vals[0] = (ff_wma3_symbol_to_vec4[idx] >> 8) >> 4;


More information about the FFmpeg-soc mailing list