aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-03-17 20:45:45 +0100
committerMichael Niedermayer <michaelni@gmx.at>2012-03-17 20:48:56 +0100
commit219a6fb61cb9e6f534f20dc3313442f89b0ffd42 (patch)
treee94eb0b1453218a73c358c985271d0892d950dff /libavcodec
parent69174fad736e4ced0010a25e0fde5389ba9c77f0 (diff)
downloadffmpeg-219a6fb61cb9e6f534f20dc3313442f89b0ffd42.tar.gz
dsp: fix diff_bytes_mmx() with small width
Fixes Ticket1068 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/x86/dsputilenc_mmx.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/x86/dsputilenc_mmx.c b/libavcodec/x86/dsputilenc_mmx.c
index accfe61be2..bf439ca5df 100644
--- a/libavcodec/x86/dsputilenc_mmx.c
+++ b/libavcodec/x86/dsputilenc_mmx.c
@@ -823,6 +823,7 @@ static int vsad16_mmx2(void *v, uint8_t * pix1, uint8_t * pix2, int line_size, i
static void diff_bytes_mmx(uint8_t *dst, const uint8_t *src1, const uint8_t *src2, int w){
x86_reg i=0;
+ if(w>=16)
__asm__ volatile(
"1: \n\t"
"movq (%2, %0), %%mm0 \n\t"