comparison ac3dec.c @ 6088:2b84971fb4f1 libavcodec

remove unused context variable
author jbr
date Sun, 30 Dec 2007 03:10:18 +0000
parents 2f9c17454842
children 12a77958941f
comparison
equal deleted inserted replaced
6087:34abda474ff7 6088:2b84971fb4f1
124 124
125 #define AC3_OUTPUT_LFEON 8 125 #define AC3_OUTPUT_LFEON 8
126 126
127 typedef struct { 127 typedef struct {
128 int channel_mode; ///< channel mode (acmod) 128 int channel_mode; ///< channel mode (acmod)
129 int dolby_surround_mode; ///< dolby surround mode
130 int block_switch[AC3_MAX_CHANNELS]; ///< block switch flags 129 int block_switch[AC3_MAX_CHANNELS]; ///< block switch flags
131 int dither_flag[AC3_MAX_CHANNELS]; ///< dither flags 130 int dither_flag[AC3_MAX_CHANNELS]; ///< dither flags
132 int dither_all; ///< true if all channels are dithered 131 int dither_all; ///< true if all channels are dithered
133 int cpl_in_use; ///< coupling in use 132 int cpl_in_use; ///< coupling in use
134 int channel_in_cpl[AC3_MAX_CHANNELS]; ///< channel in coupling 133 int channel_in_cpl[AC3_MAX_CHANNELS]; ///< channel in coupling
334 /* get decoding parameters from header info */ 333 /* get decoding parameters from header info */
335 ctx->bit_alloc_params.sr_code = hdr.sr_code; 334 ctx->bit_alloc_params.sr_code = hdr.sr_code;
336 ctx->channel_mode = hdr.channel_mode; 335 ctx->channel_mode = hdr.channel_mode;
337 center_mix_level = gain_levels[center_levels[hdr.center_mix_level]]; 336 center_mix_level = gain_levels[center_levels[hdr.center_mix_level]];
338 surround_mix_level = gain_levels[surround_levels[hdr.surround_mix_level]]; 337 surround_mix_level = gain_levels[surround_levels[hdr.surround_mix_level]];
339 ctx->dolby_surround_mode = hdr.dolby_surround_mode;
340 ctx->lfe_on = hdr.lfe_on; 338 ctx->lfe_on = hdr.lfe_on;
341 ctx->bit_alloc_params.sr_shift = hdr.sr_shift; 339 ctx->bit_alloc_params.sr_shift = hdr.sr_shift;
342 ctx->sampling_rate = hdr.sample_rate; 340 ctx->sampling_rate = hdr.sample_rate;
343 ctx->bit_rate = hdr.bit_rate; 341 ctx->bit_rate = hdr.bit_rate;
344 ctx->channels = hdr.channels; 342 ctx->channels = hdr.channels;