Browse Source

remove unneeded variable, dither_all

Originally committed as revision 15011 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.5
Justin Ruggles 17 years ago
parent
commit
260e09305b
2 changed files with 0 additions and 5 deletions
  1. +0
    -4
      libavcodec/ac3dec.c
  2. +0
    -1
      libavcodec/ac3dec.h

+ 0
- 4
libavcodec/ac3dec.c View File

@@ -599,7 +599,6 @@ static void decode_transform_coeffs(AC3DecodeContext *s, int blk)
} }


/* if any channel doesn't use dithering, zero appropriate coefficients */ /* if any channel doesn't use dithering, zero appropriate coefficients */
if(!s->dither_all)
remove_dithering(s); remove_dithering(s);
} }


@@ -742,11 +741,8 @@ static int decode_audio_block(AC3DecodeContext *s, int blk)


/* dithering flags */ /* dithering flags */
if (s->dither_flag_syntax) { if (s->dither_flag_syntax) {
s->dither_all = 1;
for (ch = 1; ch <= fbw_channels; ch++) { for (ch = 1; ch <= fbw_channels; ch++) {
s->dither_flag[ch] = get_bits1(gbc); s->dither_flag[ch] = get_bits1(gbc);
if(!s->dither_flag[ch])
s->dither_all = 0;
} }
} }




+ 0
- 1
libavcodec/ac3dec.h View File

@@ -140,7 +140,6 @@ typedef struct {
///@} ///@}


///@defgroup dithering zero-mantissa dithering ///@defgroup dithering zero-mantissa dithering
int dither_all; ///< true if all channels are dithered
int dither_flag[AC3_MAX_CHANNELS]; ///< dither flags (dithflg) int dither_flag[AC3_MAX_CHANNELS]; ///< dither flags (dithflg)
AVLFG dith_state; ///< for dither generation AVLFG dith_state; ///< for dither generation
///@} ///@}


Loading…
Cancel
Save