[FFmpeg-devel] [PATCH 3/3] avcodec/x86/lossless_videoencdsp: Fix warning: signed dword value exceeds bounds

Michael Niedermayer michael at niedermayer.cc
Sat Sep 30 01:58:29 EEST 2017


Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
---
 libavcodec/x86/lossless_videoencdsp.asm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/x86/lossless_videoencdsp.asm b/libavcodec/x86/lossless_videoencdsp.asm
index a9c7a0a73c..89f20dc4e2 100644
--- a/libavcodec/x86/lossless_videoencdsp.asm
+++ b/libavcodec/x86/lossless_videoencdsp.asm
@@ -45,7 +45,7 @@ cglobal diff_bytes, 4,5,2, dst, src1, src2, w
 ; labels to jump to if w < regsize and w < 0
 %macro DIFF_BYTES_LOOP_PREP 2
     mov                i, wq
-    and                i, -2 * regsize
+    and                i, -(2 * regsize)
         js            %2
         jz            %1
     add             dstq, i
-- 
2.14.2



More information about the ffmpeg-devel mailing list