[FFmpeg-soc] [soc]: r3275 - aacenc/aacenc.c

kostya subversion at mplayerhq.hu
Thu Aug 14 19:41:00 CEST 2008


Author: kostya
Date: Thu Aug 14 19:41:00 2008
New Revision: 3275

Log:
Remove variable for better readability

Modified:
   aacenc/aacenc.c

Modified: aacenc/aacenc.c
==============================================================================
--- aacenc/aacenc.c	(original)
+++ aacenc/aacenc.c	Thu Aug 14 19:41:00 2008
@@ -445,10 +445,10 @@ static void encode_band_coeffs(AACEncCon
             //output escape values
             for(j = 0; j < dim; j++)
                 if(coef_abs[j] > 15){
-                    int l = av_log2(coef_abs[j]);
+                    int len = av_log2(coef_abs[j]);
 
-                    put_bits(&s->pb, l - 4 + 1, (1 << (l - 4 + 1)) - 2);
-                    put_bits(&s->pb, l, coef_abs[j] & ((1 << l) - 1));
+                    put_bits(&s->pb, len - 4 + 1, (1 << (len - 4 + 1)) - 2);
+                    put_bits(&s->pb, len, coef_abs[j] & ((1 << len) - 1));
                 }
         }
     }else if(aac_cb_info[cb].flags & CB_UNSIGNED){



More information about the FFmpeg-soc mailing list