[FFmpeg-cvslog] avcodec/internal: Add () to argument of FF_SIGNBIT() to ensure correct order or operations

Michael Niedermayer git at videolan.org
Tue Nov 18 03:48:47 CET 2014


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Tue Nov 18 03:42:40 2014 +0100| [9bb6e1175f6e396c9314449d62ee67b74081104e] | committer: Michael Niedermayer

avcodec/internal: Add () to argument of FF_SIGNBIT() to ensure correct order or operations

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

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

 libavcodec/internal.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/internal.h b/libavcodec/internal.h
index b8ceb2e..f4e12e8 100644
--- a/libavcodec/internal.h
+++ b/libavcodec/internal.h
@@ -35,7 +35,7 @@
 
 #define FF_SANE_NB_CHANNELS 63U
 
-#define FF_SIGNBIT(x) (x >> CHAR_BIT * sizeof(x) - 1)
+#define FF_SIGNBIT(x) ((x) >> CHAR_BIT * sizeof(x) - 1)
 
 #if HAVE_AVX
 #   define STRIDE_ALIGN 32



More information about the ffmpeg-cvslog mailing list