aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-03-25 00:15:52 +0100
committerMichael Niedermayer <michaelni@gmx.at>2014-06-23 15:10:07 +0200
commit380587cc34c2a94bab8350c52c93ca9d171ab0fe (patch)
tree207f785b84cbba58cc62fd0caa02dc590ac34263
parent998b5ac3a04358e8d6583dfb8db44ec98390b433 (diff)
downloadffmpeg-380587cc34c2a94bab8350c52c93ca9d171ab0fe.tar.gz
avcodec/x86/mpegvideoenc_template: fix integer overflow
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavcodec/x86/mpegvideoenc_template.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/x86/mpegvideoenc_template.c b/libavcodec/x86/mpegvideoenc_template.c
index 1e0505ea3c..b0ba234d4b 100644
--- a/libavcodec/x86/mpegvideoenc_template.c
+++ b/libavcodec/x86/mpegvideoenc_template.c
@@ -216,7 +216,7 @@ static int RENAME(dct_quantize)(MpegEncContext *s,
"psubusw "MM"1, "MM"4 \n\t"
"packuswb "MM"4, "MM"4 \n\t"
#if COMPILE_TEMPLATE_SSE2
- "packuswb "MM"4, "MM"4 \n\t"
+ "packsswb "MM"4, "MM"4 \n\t"
#endif
"movd "MM"4, %0 \n\t" // *overflow
: "=g" (*overflow)