avcodec/x86/mpegvideoenc_template: fix integer overflow
authorMichael Niedermayer <michaelni@gmx.at>
Mon, 24 Mar 2014 23:15:52 +0000 (00:15 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Mon, 23 Jun 2014 16:16:20 +0000 (18:16 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/x86/mpegvideoenc_template.c

index 1e0505e..b0ba234 100644 (file)
@@ -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)