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:14:40 +0200
commit5f7e6b9c37a4c969b9b401c2048df7d8066c0a52 (patch)
tree46691921b51a41e6ef3b8d5164bb80bd7fe575f5
parent1ec03662c0f225cba9685cf21328f4847be2ee97 (diff)
downloadffmpeg-5f7e6b9c37a4c969b9b401c2048df7d8066c0a52.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 d874f39ec7..8ec193ef16 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)