avcodec/internal: Add () to argument of FF_SIGNBIT() to ensure correct order or opera...
authorMichael Niedermayer <michaelni@gmx.at>
Tue, 18 Nov 2014 02:42:40 +0000 (03:42 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 18 Nov 2014 02:42:40 +0000 (03:42 +0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/internal.h

index b8ceb2e..f4e12e8 100644 (file)
@@ -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