[FFmpeg-cvslog] r24609 - trunk/libavcodec/flacenc.c

jbr subversion
Fri Jul 30 23:07:21 CEST 2010


Author: jbr
Date: Fri Jul 30 23:07:21 2010
New Revision: 24609

Log:
cosmetics: indentation

Modified:
   trunk/libavcodec/flacenc.c

Modified: trunk/libavcodec/flacenc.c
==============================================================================
--- trunk/libavcodec/flacenc.c	Fri Jul 30 23:06:38 2010	(r24608)
+++ trunk/libavcodec/flacenc.c	Fri Jul 30 23:07:21 2010	(r24609)
@@ -1114,36 +1114,36 @@ static void output_subframe(FlacEncodeCo
         while (res < frame_end)
             put_sbits(&s->pb, sub->obits, *res++);
     } else {
-    /* warm-up samples */
-    for (i = 0; i < sub->order; i++)
-        put_sbits(&s->pb, sub->obits, *res++);
-
-    /* LPC coefficients */
-    if (sub->type == FLAC_SUBFRAME_LPC) {
-        int cbits = s->options.lpc_coeff_precision;
-        put_bits( &s->pb, 4, cbits-1);
-        put_sbits(&s->pb, 5, sub->shift);
+        /* warm-up samples */
         for (i = 0; i < sub->order; i++)
-            put_sbits(&s->pb, cbits, sub->coefs[i]);
-    }
+            put_sbits(&s->pb, sub->obits, *res++);
 
-    /* rice-encoded block */
-    put_bits(&s->pb, 2, 0);
+        /* LPC coefficients */
+        if (sub->type == FLAC_SUBFRAME_LPC) {
+            int cbits = s->options.lpc_coeff_precision;
+            put_bits( &s->pb, 4, cbits-1);
+            put_sbits(&s->pb, 5, sub->shift);
+            for (i = 0; i < sub->order; i++)
+                put_sbits(&s->pb, cbits, sub->coefs[i]);
+        }
 
-    /* partition order */
-    porder  = sub->rc.porder;
-    psize   = s->frame.blocksize >> porder;
-    put_bits(&s->pb, 4, porder);
+        /* rice-encoded block */
+        put_bits(&s->pb, 2, 0);
 
-    /* residual */
-    part_end  = &sub->residual[psize             ];
-    for (p = 0; p < 1 << porder; p++) {
-        int k = sub->rc.params[p];
-        put_bits(&s->pb, 4, k);
-        while (res < part_end)
-            set_sr_golomb_flac(&s->pb, *res++, k, INT32_MAX, 0);
-        part_end = FFMIN(frame_end, part_end + psize);
-    }
+        /* partition order */
+        porder  = sub->rc.porder;
+        psize   = s->frame.blocksize >> porder;
+        put_bits(&s->pb, 4, porder);
+
+        /* residual */
+        part_end  = &sub->residual[psize];
+        for (p = 0; p < 1 << porder; p++) {
+            int k = sub->rc.params[p];
+            put_bits(&s->pb, 4, k);
+            while (res < part_end)
+                set_sr_golomb_flac(&s->pb, *res++, k, INT32_MAX, 0);
+            part_end = FFMIN(frame_end, part_end + psize);
+        }
     }
 }
 



More information about the ffmpeg-cvslog mailing list