[FFmpeg-soc] [PATCH] AACENC: fix SEGV in multi-channel encode WAS Re: AAC Encoding - Where we stand, what's left

Kostya kostya.shishkov at gmail.com
Wed Jul 8 08:13:31 CEST 2009


On Wed, Jul 08, 2009 at 01:41:41AM -0400, Alex Converse wrote:
[...]

> diff --git a/libavcodec/aacenc.c b/libavcodec/aacenc.c
> index 9bd80b7..51abfbe 100644
> --- a/libavcodec/aacenc.c
> +++ b/libavcodec/aacenc.c
> @@ -487,7 +487,7 @@ static int aac_encode_frame(AVCodecContext *avctx,
>              for(i = 0; i < chan_map[0]; i++){
>                  tag = chan_map[i+1];
>                  chans = tag == TYPE_CPE ? 2 : 1;
> -                ff_psy_preprocess(s->psypp, (uint16_t*)data + start_ch, samples2 + start_ch, start_ch + i, chans);
> +                ff_psy_preprocess(s->psypp, (uint16_t*)data + start_ch, samples2 + start_ch, start_ch, chans);
>                  start_ch += chans;
>              }
>          }

ok


More information about the FFmpeg-soc mailing list