Browse code

avcodec/lossless_videodsp: fix output of add_hfyu_left_pred_int16_c()

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>

James Almer authored on 2016/12/26 11:16:58
Showing 1 changed files
... ...
@@ -100,15 +100,15 @@ static int add_hfyu_left_pred_int16_c(uint16_t *dst, const uint16_t *src, unsign
100 100
 
101 101
     for(i=0; i<w-1; i++){
102 102
         acc+= src[i];
103
-        dst[i]= acc & mask;
103
+        dst[i]= acc &= mask;
104 104
         i++;
105 105
         acc+= src[i];
106
-        dst[i]= acc & mask;
106
+        dst[i]= acc &= mask;
107 107
     }
108 108
 
109 109
     for(; i<w; i++){
110 110
         acc+= src[i];
111
-        dst[i]= acc & mask;
111
+        dst[i]= acc &= mask;
112 112
     }
113 113
 
114 114
     return acc;