diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2008-09-10 20:47:16 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2008-09-10 20:47:16 +0000 |
commit | 33a67bd6c7e4fb75e01a0f781e0a679c861f2950 (patch) | |
tree | a3086acdafcdfe9c1fb0b5790f47fd631c56aad3 | |
parent | fd8897e803d94b5048248fa9688e9f257867f28f (diff) | |
download | ffmpeg-33a67bd6c7e4fb75e01a0f781e0a679c861f2950.tar.gz |
Fix overflow.
Originally committed as revision 27573 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
-rw-r--r-- | libswscale/swscale_template.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libswscale/swscale_template.c b/libswscale/swscale_template.c index 81743f2d1a..6048bfc90b 100644 --- a/libswscale/swscale_template.c +++ b/libswscale/swscale_template.c @@ -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"\ |