summaryrefslogtreecommitdiff
path: root/libavutil/intmath.h
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-02-17 00:20:30 +0100
committerMichael Niedermayer <michaelni@gmx.at>2015-02-17 00:20:49 +0100
commitf8607cfb0a8276de31512c6fabc2be17feff32a2 (patch)
treee1b28864a44abfec610488485ba1f2b63e42e00e /libavutil/intmath.h
parentcdee0c9d5feda0adb7e966bb524bc3e2ab3da27b (diff)
downloadffmpeg-f8607cfb0a8276de31512c6fabc2be17feff32a2.tar.gz
avutil/intmath: Add () to protect the ff_log2() argument
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavutil/intmath.h')
-rw-r--r--libavutil/intmath.h2
1 files changed, 1 insertions, 1 deletions
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