aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-03-17 20:45:45 +0100
committerMichael Niedermayer <michaelni@gmx.at>2012-05-06 01:42:01 +0200
commitdf93682e64e0e917d96c8af6519a2793c28117c5 (patch)
tree6d75e54be3d101d5b0ee41d758dc0790b75e616a
parent22285aba1337d0ec507255866512cf060bb010f0 (diff)
downloadffmpeg-df93682e64e0e917d96c8af6519a2793c28117c5.tar.gz
dsp: fix diff_bytes_mmx() with small width
Fixes Ticket1068 Signed-off-by: Michael Niedermayer <michaelni@gmx.at> (cherry picked from commit 73089eccd3e48539555349b36d8aabbf1cea416e)
-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 f13c1219da..35d50bec9e 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, uint8_t *src1, uint8_t *src2, int w){
x86_reg i=0;
+ if(w>=16)
__asm__ volatile(
"1: \n\t"
"movq (%2, %0), %%mm0 \n\t"