[FFmpeg-cvslog] r16043 - in trunk/libavcodec: aac.c aac.h
mru
subversion
Wed Dec 10 01:50:59 CET 2008
Author: mru
Date: Wed Dec 10 01:50:59 2008
New Revision: 16043
Log:
AAC: move scratch array to context to ensure 16-byte alignment
Modified:
trunk/libavcodec/aac.c
trunk/libavcodec/aac.h
Modified: trunk/libavcodec/aac.c
==============================================================================
--- trunk/libavcodec/aac.c (original)
+++ trunk/libavcodec/aac.c Wed Dec 10 01:50:59 2008
@@ -1336,7 +1336,7 @@ static void imdct_and_windowing(AACConte
const float * lwindow_prev = ics->use_kb_window[1] ? ff_aac_kbd_long_1024 : ff_sine_1024;
const float * swindow_prev = ics->use_kb_window[1] ? ff_aac_kbd_short_128 : ff_sine_128;
float * buf = ac->buf_mdct;
- DECLARE_ALIGNED(16, float, temp[128]);
+ float * temp = ac->temp;
int i;
// imdct
Modified: trunk/libavcodec/aac.h
==============================================================================
--- trunk/libavcodec/aac.h (original)
+++ trunk/libavcodec/aac.h Wed Dec 10 01:50:59 2008
@@ -288,6 +288,7 @@ typedef struct {
int sf_offset; ///< offset into pow2sf_tab as appropriate for dsp.float_to_int16
/** @} */
+ DECLARE_ALIGNED(16, float, temp[128]);
} AACContext;
#endif /* AVCODEC_AAC_H */
More information about the ffmpeg-cvslog
mailing list