[FFmpeg-devel] [PATCH] AAC: reject multiple channel configurations

Diego Biurrun diego
Thu Jul 9 10:18:41 CEST 2009


On Wed, Jul 08, 2009 at 07:41:24PM -0400, Alex Converse wrote:
> On Wed, Jul 8, 2009 at 12:55 AM, Alex Converse<alex.converse at gmail.com> wrote:
> > D: Something awesome that I haven't thought of yet.
> 
> Option D: (attached)

:)

> --- a/libavcodec/aac.c
> +++ b/libavcodec/aac.c
> @@ -1579,8 +1575,16 @@ static int parse_adts_frame_header(AACContext * ac, GetBitContext * gb) {
>  
> -        if (hdr_info.chan_config)
> +        if (!ac->output_configured && hdr_info.chan_config)
> +        {

nit: if (...) {

Diego



More information about the ffmpeg-devel mailing list