diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-03-17 20:45:45 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-05-11 22:39:50 +0200 |
commit | a55db1fc497dfa30e9f0596f8bb203f7645d17b7 (patch) | |
tree | 1bab8fd25f591ed1b950a7bf170cdd1a2187bfd4 /libavcodec | |
parent | 123e925956772a990c69dfbc25437ea8daf3b804 (diff) | |
download | ffmpeg-a55db1fc497dfa30e9f0596f8bb203f7645d17b7.tar.gz |
dsp: fix diff_bytes_mmx() with small widthn0.5.9
Fixes Ticket1068
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 73089eccd3e48539555349b36d8aabbf1cea416e)
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/x86/dsputilenc_mmx.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/x86/dsputilenc_mmx.c b/libavcodec/x86/dsputilenc_mmx.c index 1717a01796..c1a648b308 100644 --- a/libavcodec/x86/dsputilenc_mmx.c +++ b/libavcodec/x86/dsputilenc_mmx.c @@ -882,6 +882,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" |