[libav-devel] [PATCH 2/2] ac3dec: remove channel_layout field from AC3DecodeContext.

Justin Ruggles justin.ruggles at gmail.com
Fri Nov 22 17:28:34 CET 2013


On 11/22/2013 11:25 AM, Tim Walker wrote:
> It is never read.
> ---
>   libavcodec/ac3dec.c | 1 -
>   libavcodec/ac3dec.h | 1 -
>   2 files changed, 2 deletions(-)
>
> diff --git a/libavcodec/ac3dec.c b/libavcodec/ac3dec.c
> index 9086a2a..e9ed040 100644
> --- a/libavcodec/ac3dec.c
> +++ b/libavcodec/ac3dec.c
> @@ -261,7 +261,6 @@ static int parse_frame_header(AC3DecodeContext *s)
>       s->bit_alloc_params.sr_code     = hdr.sr_code;
>       s->bitstream_mode               = hdr.bitstream_mode;
>       s->channel_mode                 = hdr.channel_mode;
> -    s->channel_layout               = hdr.channel_layout;
>       s->lfe_on                       = hdr.lfe_on;
>       s->bit_alloc_params.sr_shift    = hdr.sr_shift;
>       s->sample_rate                  = hdr.sample_rate;
> diff --git a/libavcodec/ac3dec.h b/libavcodec/ac3dec.h
> index 06b8544..7b4a528 100644
> --- a/libavcodec/ac3dec.h
> +++ b/libavcodec/ac3dec.h
> @@ -81,7 +81,6 @@ typedef struct AC3DecodeContext {
>       int num_blocks;                         ///< number of audio blocks
>       int bitstream_mode;                     ///< bitstream mode                         (bsmod)
>       int channel_mode;                       ///< channel mode                           (acmod)
> -    int channel_layout;                     ///< channel layout
>       int lfe_on;                             ///< lfe channel in use
>       int channel_map;                        ///< custom channel map
>       int center_mix_level;                   ///< Center mix level index

LGTM

-Justin


More information about the libav-devel mailing list