Browse Source

avcodec/x86/mpegvideoenc_template: fix integer overflow

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.3
Michael Niedermayer 12 years ago
parent
commit
c25d2cd20b
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/x86/mpegvideoenc_template.c

+ 1
- 1
libavcodec/x86/mpegvideoenc_template.c View File

@@ -216,7 +216,7 @@ static int RENAME(dct_quantize)(MpegEncContext *s,
"psubusw "MM"1, "MM"4 \n\t" "psubusw "MM"1, "MM"4 \n\t"
"packuswb "MM"4, "MM"4 \n\t" "packuswb "MM"4, "MM"4 \n\t"
#if COMPILE_TEMPLATE_SSE2 #if COMPILE_TEMPLATE_SSE2
"packuswb "MM"4, "MM"4 \n\t"
"packsswb "MM"4, "MM"4 \n\t"
#endif #endif
"movd "MM"4, %0 \n\t" // *overflow "movd "MM"4, %0 \n\t" // *overflow
: "=g" (*overflow) : "=g" (*overflow)


Loading…
Cancel
Save