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

Michael Niedermayer git at videolan.org
Thu Oct 26 19:38:17 EEST 2017


ffmpeg | branch: release/3.3 | Michael Niedermayer <michael at niedermayer.cc> | Sat Sep 30 00:26:51 2017 +0200| [7cc854ce153190cf5c62cee31406088c66c37ba8] | committer: Michael Niedermayer

avcodec/x86/lossless_videoencdsp: Fix warning: signed dword value exceeds bounds

Add () to regsize define

Suggested-by: Henrik Gramner <henrik at gramner.com>
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
(cherry picked from commit 26ea142658a8be16d13bb430ced14ef544f8afe9)
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>

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

 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 41ab23eae5..7b82285df1 100644
--- a/libavcodec/x86/lossless_videoencdsp.asm
+++ b/libavcodec/x86/lossless_videoencdsp.asm
@@ -87,7 +87,7 @@ cglobal diff_bytes, 4,5,2, dst, src1, src2, w
         jz     .end_%1%2
 %if mmsize > 16
     ; fall back to narrower xmm
-    %define regsize mmsize / 2
+    %define regsize (mmsize / 2)
     DIFF_BYTES_LOOP_PREP .setup_loop_gpr_aa, .end_aa
 .loop2_%1%2:
     DIFF_BYTES_LOOP_CORE %1, %2, xm0, xm1



More information about the ffmpeg-cvslog mailing list