[FFmpeg-soc] [PATCH] AACENC: fix SEGV in multi-channel encode WAS Re: AAC Encoding - Where we stand, what's left
Alex Converse
alex.converse at gmail.com
Wed Jul 8 10:36:47 CEST 2009
On Wed, Jul 8, 2009 at 2:13 AM, Kostya<kostya.shishkov at gmail.com> wrote:
> 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
Applied
More information about the FFmpeg-soc
mailing list