[FFmpeg-cvslog] avcodec/opus: Fix () in ROUND_MULL() macro

Michael Niedermayer git at videolan.org
Sun May 25 19:35:52 CEST 2014


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sun May 25 19:25:58 2014 +0200| [eb718f4c532c21cb33e3c85581628f6def9710e0] | committer: Michael Niedermayer

avcodec/opus: Fix () in ROUND_MULL() macro

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

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

 libavcodec/opus.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/opus.h b/libavcodec/opus.h
index a1e8ed0..543d90c 100644
--- a/libavcodec/opus.h
+++ b/libavcodec/opus.h
@@ -57,7 +57,7 @@
 #define SILK_HISTORY                 322
 #define SILK_MAX_LPC                 16
 
-#define ROUND_MULL(a,b,s) (((MUL64(a, b) >> (s - 1)) + 1) >> 1)
+#define ROUND_MULL(a,b,s) (((MUL64(a, b) >> ((s) - 1)) + 1) >> 1)
 #define ROUND_MUL16(a,b)  ((MUL16(a, b) + 16384) >> 15)
 #define opus_ilog(i) (av_log2(i) + !!(i))
 



More information about the ffmpeg-cvslog mailing list