[FFmpeg-soc] [soc]: r3663 - in eac3: ac3dec.c eac3dec.c

jbr subversion at mplayerhq.hu
Fri Aug 29 02:17:38 CEST 2008


Author: jbr
Date: Fri Aug 29 02:17:38 2008
New Revision: 3663

Log:
remove unneeded variable, dither_all

Modified:
   eac3/ac3dec.c
   eac3/eac3dec.c

Modified: eac3/ac3dec.c
==============================================================================
--- eac3/ac3dec.c	(original)
+++ eac3/ac3dec.c	Fri Aug 29 02:17:38 2008
@@ -596,7 +596,6 @@ static void decode_transform_coeffs(AC3D
     }
 
     /* if any channel doesn't use dithering, zero appropriate coefficients */
-    if(!s->dither_all)
         remove_dithering(s);
 }
 
@@ -739,11 +738,8 @@ static int decode_audio_block(AC3DecodeC
 
     /* dithering flags */
     if (s->dither_flag_syntax) {
-        s->dither_all = 1;
         for (ch = 1; ch <= fbw_channels; ch++) {
             s->dither_flag[ch] = get_bits1(gbc);
-            if(!s->dither_flag[ch])
-                s->dither_all = 0;
         }
     }
 

Modified: eac3/eac3dec.c
==============================================================================
--- eac3/eac3dec.c	(original)
+++ eac3/eac3dec.c	Fri Aug 29 02:17:38 2008
@@ -353,7 +353,6 @@ int ff_eac3_parse_header(AC3DecodeContex
 
     s->dither_flag_syntax = get_bits1(gbc);
     if (!s->dither_flag_syntax) {
-        s->dither_all = 1;
         for (ch = 1; ch <= s->fbw_channels; ch++)
             s->dither_flag[ch] = 1;
     }



More information about the FFmpeg-soc mailing list