[FFmpeg-soc] [soc]: r2878 - aac/aac.c

superdump subversion at mplayerhq.hu
Mon Jul 28 11:05:57 CEST 2008


Author: superdump
Date: Mon Jul 28 11:05:57 2008
New Revision: 2878

Log:
Move pulse.present = 0 assignment closer to where it is assigned non-zero to
ease comprehension of the code


Modified:
   aac/aac.c

Modified: aac/aac.c
==============================================================================
--- aac/aac.c	(original)
+++ aac/aac.c	Mon Jul 28 11:05:57 2008
@@ -1374,7 +1374,6 @@ static int decode_ics(AACContext * ac, G
     float * out = sce->coeffs;
     int global_gain;
 
-    pulse.present = 0;
     global_gain = get_bits(gb, 8);
 
     if (!common_window && !scale_flag) {
@@ -1387,6 +1386,7 @@ static int decode_ics(AACContext * ac, G
     if (decode_scalefactors(ac, gb, sce->mixing_gain, global_gain, ics, sce->band_type, sce->band_type_run_end, sce->sf) < 0)
         return -1;
 
+    pulse.present = 0;
     if (!scale_flag) {
         if ((pulse.present = get_bits1(gb))) {
             if (ics->window_sequence == EIGHT_SHORT_SEQUENCE) {



More information about the FFmpeg-soc mailing list