From f8607cfb0a8276de31512c6fabc2be17feff32a2 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Tue, 17 Feb 2015 00:20:30 +0100 Subject: [PATCH] avutil/intmath: Add () to protect the ff_log2() argument Signed-off-by: Michael Niedermayer --- libavutil/intmath.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavutil/intmath.h b/libavutil/intmath.h index 308c776bb7..fa549c8a2d 100644 --- a/libavutil/intmath.h +++ b/libavutil/intmath.h @@ -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