avcodec/lossless_videodsp: fix diff_int16_c on MIPS
authorMichael Niedermayer <michaelni@gmx.at>
Tue, 21 Jan 2014 02:20:11 +0000 (03:20 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 21 Jan 2014 02:20:39 +0000 (03:20 +0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/lossless_videodsp.c

index 72eeb26..197f63e 100644 (file)
@@ -38,7 +38,7 @@ static void diff_int16_c(uint16_t *dst, const uint16_t *src1, const uint16_t *sr
     long i;
 #if !HAVE_FAST_UNALIGNED
     if((long)src2 & (sizeof(long)-1)){
-        for(i=0; i+7<w; i+=8){
+        for(i=0; i+3<w; i+=4){
             dst[i+0] = (src1[i+0]-src2[i+0]) & mask;
             dst[i+1] = (src1[i+1]-src2[i+1]) & mask;
             dst[i+2] = (src1[i+2]-src2[i+2]) & mask;