# HG changeset patch # User reimar # Date 1188474118 0 # Node ID 544bcf5891adae712cb851489aa3bbdc42079865 # Parent 0ffea9729a0d52ae41da5983d782afca19a0a4a9 Replace complicated and currently broken manual alignment code by DECLARE_ALIGNED_16. Fixes crash in ff_snow_horizontal_compose97i_sse2 diff -r 0ffea9729a0d -r 544bcf5891ad i386/snowdsp_mmx.c --- a/i386/snowdsp_mmx.c Tue Aug 28 13:39:50 2007 +0000 +++ b/i386/snowdsp_mmx.c Thu Aug 30 11:41:58 2007 +0000 @@ -25,9 +25,7 @@ void ff_snow_horizontal_compose97i_sse2(IDWTELEM *b, int width){ const int w2= (width+1)>>1; - // SSE2 code runs faster with pointers aligned on a 32-byte boundary. - IDWTELEM temp_buf[(width>>1) + 4]; - IDWTELEM * const temp = temp_buf + 4 - (((int)temp_buf & 0xF) >> 2); + DECLARE_ALIGNED_16(IDWTELEM, temp[width>>1]); const int w_l= (width>>1); const int w_r= w2 - 1; int i;