Commit f35b8a01 authored by reimar's avatar reimar

Replace complicated and currently broken manual alignment code by

DECLARE_ALIGNED_16. Fixes crash in ff_snow_horizontal_compose97i_sse2


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@10261 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 56722e5c
...@@ -25,9 +25,7 @@ ...@@ -25,9 +25,7 @@
void ff_snow_horizontal_compose97i_sse2(IDWTELEM *b, int width){ void ff_snow_horizontal_compose97i_sse2(IDWTELEM *b, int width){
const int w2= (width+1)>>1; const int w2= (width+1)>>1;
// SSE2 code runs faster with pointers aligned on a 32-byte boundary. DECLARE_ALIGNED_16(IDWTELEM, temp[width>>1]);
IDWTELEM temp_buf[(width>>1) + 4];
IDWTELEM * const temp = temp_buf + 4 - (((int)temp_buf & 0xF) >> 2);
const int w_l= (width>>1); const int w_l= (width>>1);
const int w_r= w2 - 1; const int w_r= w2 - 1;
int i; int i;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment