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

jbr subversion at mplayerhq.hu
Sun Jan 6 19:29:50 CET 2008


Author: jbr
Date: Sun Jan  6 19:29:50 2008
New Revision: 1777

Log:
move uncoupling to be done right after coupling coefficients are decoded

Modified:
   eac3/ac3dec.c

Modified: eac3/ac3dec.c
==============================================================================
--- eac3/ac3dec.c	(original)
+++ eac3/ac3dec.c	Sun Jan  6 19:29:50 2008
@@ -599,6 +599,8 @@ int ff_ac3_get_transform_coeffs(AC3Decod
                 if (get_transform_coeffs_ch(s, blk, CPL_CH, &m)) {
                     return -1;
                 }
+                /* calculate transform coefficients for coupling range */
+                uncouple_channels(s);
                 got_cplchan = 1;
             }
             end = s->end_freq[CPL_CH];
@@ -610,10 +612,6 @@ int ff_ac3_get_transform_coeffs(AC3Decod
         while(++end < 256);
     }
 
-    /* calculate transform coefficients for coupling range */
-    if(s->cpl_in_use[blk])
-        uncouple_channels(s);
-
     /* if any channel doesn't use dithering, zero appropriate coefficients */
     if(!s->dither_all)
         remove_dithering(s);



More information about the FFmpeg-soc mailing list