summaryrefslogtreecommitdiff
path: root/libavcodec
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2006-11-03 11:07:35 +0000
committerMichael Niedermayer <michaelni@gmx.at>2006-11-03 11:07:35 +0000
commitbda2203d5652ceaf40e57b47c3e81f9340403ec2 (patch)
treef8ecb86cf1dd0bbabbee16a43b79cdf4f09a8af4 /libavcodec
parent5a1553dee39bf35e5474262526f536298a6cd69f (diff)
preempt possible overflow
Originally committed as revision 6881 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/i386/h264dsp_mmx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/i386/h264dsp_mmx.c b/libavcodec/i386/h264dsp_mmx.c
index 468edd9b71..c0da80ad89 100644
--- a/libavcodec/i386/h264dsp_mmx.c
+++ b/libavcodec/i386/h264dsp_mmx.c
@@ -347,7 +347,7 @@ static void ff_h264_idct8_dc_add_mmx2(uint8_t *dst, int16_t *block, int stride)
"pxor %%mm1 , %%mm4 \n\t"\
"pavgb %%mm2 , %%mm4 \n\t" /* (q0 - p0 + 256)>>1*/\
"pavgb %%mm5 , %%mm3 \n\t"\
- "paddb %%mm4 , %%mm3 \n\t" /* d+128+33*/\
+ "paddusb %%mm4 , %%mm3 \n\t" /* d+128+33*/\
"movq "MANGLE(ff_pb_A1)" , %%mm6 \n\t"\
"psubusb %%mm3 , %%mm6 \n\t"\
"psubusb "MANGLE(ff_pb_A1)" , %%mm3 \n\t"\