aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>2007-08-30 11:41:58 +0000
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>2007-08-30 11:41:58 +0000
commiteafa1c90e573c14562987390d1001d4e636d5a74 (patch)
tree8ce237067a8b967435f0281bb338cbc315a5962d
parent46b274d4e51a4d16613c88e34d1b0723f5c90622 (diff)
downloadffmpeg-eafa1c90e573c14562987390d1001d4e636d5a74.tar.gz
Replace complicated and currently broken manual alignment code by
DECLARE_ALIGNED_16. Fixes crash in ff_snow_horizontal_compose97i_sse2 Originally committed as revision 10261 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavcodec/i386/snowdsp_mmx.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/libavcodec/i386/snowdsp_mmx.c b/libavcodec/i386/snowdsp_mmx.c
index 561b43bf09..e43f7e9de8 100644
--- a/libavcodec/i386/snowdsp_mmx.c
+++ b/libavcodec/i386/snowdsp_mmx.c
@@ -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;