--- branches/dev-api-4/xvidcore/src/motion/sad.c 2003/03/28 07:28:23 956 +++ branches/dev-api-4/xvidcore/src/motion/sad.c 2003/03/28 08:43:28 957 @@ -111,13 +111,6 @@ for (i = 0; i < 16; i++) { int pixel = (ptr_ref1[i] + ptr_ref2[i] + 1) / 2; - - if (pixel < 0) { - pixel = 0; - } else if (pixel > 255) { - pixel = 255; - } - sad += ABS(ptr_cur[i] - pixel); } @@ -148,13 +141,6 @@ for (i = 0; i < 8; i++) { int pixel = (ptr_ref1[i] + ptr_ref2[i] + 1) / 2; - - if (pixel < 0) { - pixel = 0; - } else if (pixel > 255) { - pixel = 255; - } - sad += ABS(ptr_cur[i] - pixel); }