# HG changeset patch # User mru # Date 1228870259 0 # Node ID e06b2b848b74b6e1316d72d1448b50b5fd4d86ae # Parent 197fe6f703a3182557c99b5c400bc8299cc54577 AAC: move scratch array to context to ensure 16-byte alignment diff -r 197fe6f703a3 -r e06b2b848b74 aac.c --- a/aac.c Tue Dec 09 20:11:37 2008 +0000 +++ b/aac.c Wed Dec 10 00:50:59 2008 +0000 @@ -1336,7 +1336,7 @@ 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 diff -r 197fe6f703a3 -r e06b2b848b74 aac.h --- a/aac.h Tue Dec 09 20:11:37 2008 +0000 +++ b/aac.h Wed Dec 10 00:50:59 2008 +0000 @@ -288,6 +288,7 @@ 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 */