summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorphintuka <phintuka>2011-02-21 22:42:13 +0000
committerphintuka <phintuka>2011-02-21 22:42:13 +0000
commitbccd82916328e1a472a55c732e02ef84288a7e3f (patch)
tree9228722f363aa5f972ad0d6ab14ba0e81c657b70
parent646ef2033050a2f952cab8b0b25f8ce74b695680 (diff)
downloadxineliboutput-bccd82916328e1a472a55c732e02ef84288a7e3f.tar.gz
xineliboutput-bccd82916328e1a472a55c732e02ef84288a7e3f.tar.bz2
Fixed unaligned access when compiled with some 32-bit gcc 4.4.x versions.
Closes #2952110
-rw-r--r--xine_post_swscale.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/xine_post_swscale.c b/xine_post_swscale.c
index a62b0742..0ddb448b 100644
--- a/xine_post_swscale.c
+++ b/xine_post_swscale.c
@@ -17,7 +17,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*
- * $Id: xine_post_swscale.c,v 1.13 2010-05-24 12:12:36 phintuka Exp $
+ * $Id: xine_post_swscale.c,v 1.14 2011-02-21 22:42:13 phintuka Exp $
*
* Simple (faster) resize for avisynth
* Copyright (C) 2002 Tom Barry
@@ -588,10 +588,10 @@ static int do_warp_yuy2(uint8_t *dst, const uint8_t *src,
".align 16 \n\t"
- "movdqa "_FPround1", %%xmm0 \n\t"
- "movdqa "_vWeight1", %%xmm5 \n\t"
- "movdqa "_vWeight2", %%xmm6 \n\t"
- "movdqa "_YMask", %%xmm7 \n"
+ "movdqu "_FPround1", %%xmm0 \n\t"
+ "movdqu "_vWeight1", %%xmm5 \n\t"
+ "movdqu "_vWeight2", %%xmm6 \n\t"
+ "movdqu "_YMask", %%xmm7 \n"
""vLoopSSE2_Fetch": \n\t"
#ifdef PREFETCH
@@ -929,9 +929,9 @@ static int do_warp_yv12(uint8_t *dst, const uint8_t * const src,
"shr $1, %%"REGC" \n\t" /* do 16 bytes at a time instead */
"dec %%"REGC" \n\t" /* jigger loop ct */
- "movdqa "_FPround1", %%xmm0 \n\t"
- "movdqa "_vWeight1", %%xmm5 \n\t"
- "movdqa "_vWeight2", %%xmm6 \n\t"
+ "movdqu "_FPround1", %%xmm0 \n\t"
+ "movdqu "_vWeight1", %%xmm5 \n\t"
+ "movdqu "_vWeight2", %%xmm6 \n\t"
"pxor %%xmm7, %%xmm7 \n"
".align 16 \n"