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

jbr subversion at mplayerhq.hu
Fri May 30 00:44:49 CEST 2008


Author: jbr
Date: Fri May 30 00:44:49 2008
New Revision: 2245

Log:
cosmetics: indent

Modified:
   eac3/ac3dec.c

Modified: eac3/ac3dec.c
==============================================================================
--- eac3/ac3dec.c	(original)
+++ eac3/ac3dec.c	Fri May 30 00:44:49 2008
@@ -1290,26 +1290,26 @@ static int ac3_decode_frame(AVCodecConte
 
     /* if frame is ok, set audio parameters */
     if (!err) {
-    avctx->sample_rate = s->sample_rate;
-    avctx->bit_rate = s->bit_rate;
+        avctx->sample_rate = s->sample_rate;
+        avctx->bit_rate = s->bit_rate;
 
-    /* channel config */
-    s->out_channels = s->channels;
-    s->output_mode = s->channel_mode;
-    if(s->lfe_on)
-        s->output_mode |= AC3_OUTPUT_LFEON;
-    if (avctx->request_channels > 0 && avctx->request_channels <= 2 &&
-        avctx->request_channels < s->channels) {
-        s->out_channels = avctx->request_channels;
-        s->output_mode  = avctx->request_channels == 1 ? AC3_CHMODE_MONO : AC3_CHMODE_STEREO;
-    }
-    avctx->channels = s->out_channels;
+        /* channel config */
+        s->out_channels = s->channels;
+        s->output_mode = s->channel_mode;
+        if(s->lfe_on)
+            s->output_mode |= AC3_OUTPUT_LFEON;
+        if (avctx->request_channels > 0 && avctx->request_channels <= 2 &&
+            avctx->request_channels < s->channels) {
+            s->out_channels = avctx->request_channels;
+            s->output_mode  = avctx->request_channels == 1 ? AC3_CHMODE_MONO : AC3_CHMODE_STEREO;
+        }
+        avctx->channels = s->out_channels;
 
-    /* set downmixing coefficients if needed */
-    if(s->channels != s->out_channels && !((s->output_mode & AC3_OUTPUT_LFEON) &&
-            s->fbw_channels == s->out_channels)) {
-        set_downmix_coeffs(s);
-    }
+        /* set downmixing coefficients if needed */
+        if(s->channels != s->out_channels && !((s->output_mode & AC3_OUTPUT_LFEON) &&
+                s->fbw_channels == s->out_channels)) {
+            set_downmix_coeffs(s);
+        }
     } else if (!s->out_channels) {
         s->out_channels = avctx->channels;
         if(s->out_channels < s->channels)



More information about the FFmpeg-soc mailing list