avutil/intmath: Add () to protect the ff_log2() argument
authorMichael Niedermayer <michaelni@gmx.at>
Mon, 16 Feb 2015 23:20:30 +0000 (00:20 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Mon, 16 Feb 2015 23:20:49 +0000 (00:20 +0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavutil/intmath.h

index 308c776..fa549c8 100644 (file)
@@ -45,7 +45,7 @@
 #endif /* ff_log2 */
 #elif defined( __INTEL_COMPILER )
 #ifndef ff_log2
-#   define ff_log2(x) (_bit_scan_reverse(x|1))
+#   define ff_log2(x) (_bit_scan_reverse((x)|1))
 #   ifndef ff_log2_16bit
 #      define ff_log2_16bit av_log2
 #   endif