aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2016-12-25 23:16:58 -0300
committerJames Almer <jamrial@gmail.com>2016-12-26 12:02:38 -0300
commitc3d822855cb5220e478d8b0ba0bafde18aa2f122 (patch)
tree0c699c54045a403ee77779bc8596e22fcdff4a31
parente7fbd7018932aa349bf52a2bc8e1acd6da058a1b (diff)
downloadffmpeg-c3d822855cb5220e478d8b0ba0bafde18aa2f122.tar.gz
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>
-rw-r--r--libavcodec/lossless_videodsp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libavcodec/lossless_videodsp.c b/libavcodec/lossless_videodsp.c
index 3491621dc4..231c25f666 100644
--- a/libavcodec/lossless_videodsp.c
+++ b/libavcodec/lossless_videodsp.c
@@ -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;