aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-03-25 00:15:52 +0100
committerMichael Niedermayer <michaelni@gmx.at>2014-03-25 00:15:52 +0100
commitc25d2cd20b7643ea2c864dea9f25eef322cf3fb2 (patch)
treee9c96df9a9236af0e0bc03043b6358514c299e92
parent575b957758670d6094e9095acfcc24e4e32fc4a7 (diff)
downloadffmpeg-c25d2cd20b7643ea2c864dea9f25eef322cf3fb2.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 10012e4484..d68f9e2c8c 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)