1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

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

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2014-05-25 19:25:58 +02:00
parent d62a4707f9
commit eb718f4c53

View File

@ -57,7 +57,7 @@
#define SILK_HISTORY 322 #define SILK_HISTORY 322
#define SILK_MAX_LPC 16 #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 ROUND_MUL16(a,b) ((MUL16(a, b) + 16384) >> 15)
#define opus_ilog(i) (av_log2(i) + !!(i)) #define opus_ilog(i) (av_log2(i) + !!(i))