[FFmpeg-cvslog] r27573 - trunk/libswscale/swscale_template.c

michael subversion
Wed Sep 10 22:47:16 CEST 2008


Author: michael
Date: Wed Sep 10 22:47:16 2008
New Revision: 27573

Log:
Fix overflow.


Modified:
   trunk/libswscale/swscale_template.c

Modified: trunk/libswscale/swscale_template.c
==============================================================================
--- trunk/libswscale/swscale_template.c	(original)
+++ trunk/libswscale/swscale_template.c	Wed Sep 10 22:47:16 2008
@@ -190,8 +190,8 @@
     "1:                                   \n\t"\
     "movq  (%0, %%"REG_a", 2), %%mm0      \n\t"\
     "movq 8(%0, %%"REG_a", 2), %%mm1      \n\t"\
-    "paddw              %%mm7, %%mm0      \n\t"\
-    "paddw              %%mm7, %%mm1      \n\t"\
+    "paddsw             %%mm7, %%mm0      \n\t"\
+    "paddsw             %%mm7, %%mm1      \n\t"\
     "psraw                 $7, %%mm0      \n\t"\
     "psraw                 $7, %%mm1      \n\t"\
     "packuswb           %%mm1, %%mm0      \n\t"\




More information about the ffmpeg-cvslog mailing list