[FFmpeg-soc] [soc]: r4654 - aacenc/aacenc.c

alexc subversion at mplayerhq.hu
Wed Jul 8 10:36:32 CEST 2009


Author: alexc
Date: Wed Jul  8 10:36:32 2009
New Revision: 4654

Log:
Fix a SEGV in ff_psy_preprocess for multichannel files.

Modified:
   aacenc/aacenc.c

Modified: aacenc/aacenc.c
==============================================================================
--- aacenc/aacenc.c	Tue Jul  7 21:52:05 2009	(r4653)
+++ aacenc/aacenc.c	Wed Jul  8 10:36:32 2009	(r4654)
@@ -487,7 +487,7 @@ static int aac_encode_frame(AVCodecConte
             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;
             }
         }


More information about the FFmpeg-soc mailing list