From b3b439b7cf66a9c305d194c3db2cebcdfbcaf52c Mon Sep 17 00:00:00 2001 From: rfelker Date: Thu, 11 Dec 2003 04:56:19 +0000 Subject: [PATCH] 100l bug found by Zoli, wasted time and unfairly delocalized the metrics git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@11625 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libmpcodecs/pullup.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libmpcodecs/pullup.c b/libmpcodecs/pullup.c index c1dbb65ea6..0b2c2da381 100644 --- a/libmpcodecs/pullup.c +++ b/libmpcodecs/pullup.c @@ -61,7 +61,7 @@ static int licomb_y_mmx(unsigned char *a, unsigned char *b, int s) { int ret; asm volatile ( - "movl $8, %%ecx \n\t" + "movl $4, %%ecx \n\t" "pxor %%mm6, %%mm6 \n\t" "pxor %%mm7, %%mm7 \n\t" "subl %%eax, %%edi \n\t" @@ -163,7 +163,7 @@ static int diff_y(unsigned char *a, unsigned char *b, int s) static int licomb_y(unsigned char *a, unsigned char *b, int s) { int i, j, diff=0; - for (i=8; i; i--) { + for (i=4; i; i--) { for (j=0; j<8; j++) diff += ABS((a[j]<<1) - b[j-s] - b[j]) + ABS((b[j]<<1) - a[j] - a[j+s]);