[FFmpeg-cvslog] dsp: fix diff_bytes_mmx() with small width
Michael Niedermayer
git at videolan.org
Mon Apr 9 18:03:30 CEST 2012
ffmpeg | branch: release/0.8 | Michael Niedermayer <michaelni at gmx.at> | Sat Mar 17 20:45:45 2012 +0100| [7ca2ed716d0b587114b7786c6ea291c839a1ea20] | committer: Michael Niedermayer
dsp: fix diff_bytes_mmx() with small width
Fixes Ticket1068
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
(cherry picked from commit 73089eccd3e48539555349b36d8aabbf1cea416e)
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=7ca2ed716d0b587114b7786c6ea291c839a1ea20
---
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 bd31205..0234eaa 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"
More information about the ffmpeg-cvslog
mailing list