changeset 10284:38e05838efc0 libavcodec

Cosmetics: Do some basic pretty-printing.
author jbr
date Sun, 27 Sep 2009 04:55:37 +0000
parents a4b3121d4299
children 4ce987b92348
files ac3.c
diffstat 1 files changed, 8 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/ac3.c	Sun Sep 27 04:47:38 2009 +0000
+++ b/ac3.c	Sun Sep 27 04:55:37 2009 +0000
@@ -101,7 +101,7 @@
     int bin, band;
 
     /* exponent mapping to PSD */
-    for(bin=start;bin<end;bin++) {
+    for (bin = start; bin < end; bin++) {
         psd[bin]=(3072 - (exp[bin] << 7));
     }
 
@@ -133,7 +133,7 @@
 
     /* excitation function */
     bndstrt = bin_to_band_tab[start];
-    bndend = bin_to_band_tab[end-1] + 1;
+    bndend  = bin_to_band_tab[end-1] + 1;
 
     if (bndstrt == 0) {
         lowcomp = 0;
@@ -224,7 +224,7 @@
     int i, j, k, end1, v, address;
 
     /* special case, if snr offset is -960, set all bap's to zero */
-    if(snr_offset == -960) {
+    if (snr_offset == -960) {
         memset(bap, 0, 256);
         return;
     }
@@ -258,8 +258,8 @@
     ff_ac3_bit_alloc_calc_psd(exp, start, end, psd, band_psd);
 
     ff_ac3_bit_alloc_calc_mask(s, band_psd, start, end, fast_gain, is_lfe,
-                               dba_mode, dba_nsegs, dba_offsets, dba_lengths, dba_values,
-                               mask);
+                               dba_mode, dba_nsegs, dba_offsets, dba_lengths,
+                               dba_values, mask);
 
     ff_ac3_bit_alloc_calc_bap(mask, psd, start, end, snr_offset, s->floor,
                               ff_ac3_bap_tab, bap);
@@ -277,10 +277,11 @@
     /* compute bndtab and masktab from bandsz */
     k = 0;
     l = 0;
-    for(i=0;i<50;i++) {
+    for (i = 0; i < 50; i++) {
         band_start_tab[i] = l;
         v = ff_ac3_critical_band_size_tab[i];
-        for(j=0;j<v;j++) bin_to_band_tab[k++]=i;
+        for (j = 0; j < v; j++)
+            bin_to_band_tab[k++] = i;
         l += v;
     }
     band_start_tab[50] = l;