[FFmpeg-soc] [soc]: r1806 - eac3/ac3dec.c

jbr subversion at mplayerhq.hu
Wed Jan 9 00:14:07 CET 2008


Author: jbr
Date: Wed Jan  9 00:14:07 2008
New Revision: 1806

Log:
cosmetics: indentation after last commit

Modified:
   eac3/ac3dec.c

Modified: eac3/ac3dec.c
==============================================================================
--- eac3/ac3dec.c	(original)
+++ eac3/ac3dec.c	Wed Jan  9 00:14:07 2008
@@ -1132,42 +1132,42 @@ static int decode_audio_block(AC3DecodeC
         return -1;
     }
 
-        /* TODO: generate enhanced coupling coordinates and uncouple */
+    /* TODO: generate enhanced coupling coordinates and uncouple */
 
-        /* TODO: apply spectral extension */
+    /* TODO: apply spectral extension */
 
-        /* recover coefficients if rematrixing is in use */
-        if(s->channel_mode == AC3_CHMODE_STEREO)
-            do_rematrixing(s);
+    /* recover coefficients if rematrixing is in use */
+    if(s->channel_mode == AC3_CHMODE_STEREO)
+        do_rematrixing(s);
 
-        /* apply scaling to coefficients (headroom, dynrng) */
-        for(ch=1; ch<=s->channels; ch++) {
-            float gain = 2.0f * s->mul_bias;
-            if(s->channel_mode == AC3_CHMODE_DUALMONO) {
-                gain *= s->dynamic_range[ch-1];
-            } else {
-                gain *= s->dynamic_range[0];
-            }
-            for(i=0; i<s->end_freq[ch]; i++) {
-                s->transform_coeffs[ch][i] *= gain;
-            }
+    /* apply scaling to coefficients (headroom, dynrng) */
+    for(ch=1; ch<=s->channels; ch++) {
+        float gain = 2.0f * s->mul_bias;
+        if(s->channel_mode == AC3_CHMODE_DUALMONO) {
+            gain *= s->dynamic_range[ch-1];
+        } else {
+            gain *= s->dynamic_range[0];
         }
+        for(i=0; i<s->end_freq[ch]; i++) {
+            s->transform_coeffs[ch][i] *= gain;
+        }
+    }
 
-        do_imdct(s);
+    do_imdct(s);
 
-        /* downmix output if needed */
-        if(s->channels != s->out_channels && !((s->output_mode & AC3_OUTPUT_LFEON) &&
-                s->fbw_channels == s->out_channels)) {
-            ac3_downmix(s);
-        }
+    /* downmix output if needed */
+    if(s->channels != s->out_channels && !((s->output_mode & AC3_OUTPUT_LFEON) &&
+            s->fbw_channels == s->out_channels)) {
+        ac3_downmix(s);
+    }
 
-        /* convert float to 16-bit integer */
-        for(ch=0; ch<s->out_channels; ch++) {
-            for(i=0; i<256; i++) {
-                s->output[ch][i] += s->add_bias;
-            }
-            s->dsp.float_to_int16(s->int_output[ch], s->output[ch], 256);
+    /* convert float to 16-bit integer */
+    for(ch=0; ch<s->out_channels; ch++) {
+        for(i=0; i<256; i++) {
+            s->output[ch][i] += s->add_bias;
         }
+        s->dsp.float_to_int16(s->int_output[ch], s->output[ch], 256);
+    }
 
     return 0;
 }



More information about the FFmpeg-soc mailing list