[FFmpeg-cvslog] avcodec/lossless_videodsp: fix output of add_hfyu_left_pred_int16_c()

James Almer git at videolan.org
Mon Dec 26 17:03:02 EET 2016


ffmpeg | branch: master | James Almer <jamrial at gmail.com> | Sun Dec 25 23:16:58 2016 -0300| [c3d822855cb5220e478d8b0ba0bafde18aa2f122] | committer: James Almer

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 at gmail.com>
Signed-off-by: James Almer <jamrial at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=c3d822855cb5220e478d8b0ba0bafde18aa2f122
---

 libavcodec/lossless_videodsp.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/libavcodec/lossless_videodsp.c b/libavcodec/lossless_videodsp.c
index 3491621..231c25f 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;



More information about the ffmpeg-cvslog mailing list