avcodec/lossless_videodsp: fix output of add_hfyu_left_pred_int16_c()
authorJames Almer <jamrial@gmail.com>
Mon, 26 Dec 2016 02:16:58 +0000 (23:16 -0300)
committerJames Almer <jamrial@gmail.com>
Mon, 26 Dec 2016 15:02:38 +0000 (12:02 -0300)
It is now bitexact with the ssse3 and sse4.1 versions of the function.

Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
libavcodec/lossless_videodsp.c

index 3491621..231c25f 100644 (file)
@@ -100,15 +100,15 @@ static int add_hfyu_left_pred_int16_c(uint16_t *dst, const uint16_t *src, unsign
 
     for(i=0; i<w-1; i++){
         acc+= src[i];
-        dst[i]= acc & mask;
+        dst[i]= acc &= mask;
         i++;
         acc+= src[i];
-        dst[i]= acc & mask;
+        dst[i]= acc &= mask;
     }
 
     for(; i<w; i++){
         acc+= src[i];
-        dst[i]= acc & mask;
+        dst[i]= acc &= mask;
     }
 
     return acc;