[FFmpeg-cvslog] avutil/intmath: Add () to protect the ff_log2() argument

Michael Niedermayer git at videolan.org
Tue Feb 17 00:30:43 CET 2015


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Tue Feb 17 00:20:30 2015 +0100| [f8607cfb0a8276de31512c6fabc2be17feff32a2] | committer: Michael Niedermayer

avutil/intmath: Add () to protect the ff_log2() argument

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

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

 libavutil/intmath.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavutil/intmath.h b/libavutil/intmath.h
index 308c776..fa549c8 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



More information about the ffmpeg-cvslog mailing list