[FFmpeg-cvslog] r15011 - in trunk/libavcodec: ac3dec.c ac3dec.h

jbr subversion
Fri Aug 29 01:04:16 CEST 2008


Author: jbr
Date: Fri Aug 29 01:04:15 2008
New Revision: 15011

Log:
remove unneeded variable, dither_all

Modified:
   trunk/libavcodec/ac3dec.c
   trunk/libavcodec/ac3dec.h

Modified: trunk/libavcodec/ac3dec.c
==============================================================================
--- trunk/libavcodec/ac3dec.c	(original)
+++ trunk/libavcodec/ac3dec.c	Fri Aug 29 01:04:15 2008
@@ -599,7 +599,6 @@ static void decode_transform_coeffs(AC3D
     }
 
     /* if any channel doesn't use dithering, zero appropriate coefficients */
-    if(!s->dither_all)
         remove_dithering(s);
 }
 
@@ -742,11 +741,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: trunk/libavcodec/ac3dec.h
==============================================================================
--- trunk/libavcodec/ac3dec.h	(original)
+++ trunk/libavcodec/ac3dec.h	Fri Aug 29 01:04:15 2008
@@ -140,7 +140,6 @@ typedef struct {
 ///@}
 
 ///@defgroup dithering zero-mantissa dithering
-    int dither_all;                         ///< true if all channels are dithered
     int dither_flag[AC3_MAX_CHANNELS];      ///< dither flags                           (dithflg)
     AVLFG dith_state;                       ///< for dither generation
 ///@}




More information about the ffmpeg-cvslog mailing list