Commit e5dc7439 authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/proresenc_anatoliy: Fix () in macros

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent a3950a90
...@@ -183,11 +183,11 @@ static void encode_codeword(PutBitContext *pb, int val, int codebook) ...@@ -183,11 +183,11 @@ static void encode_codeword(PutBitContext *pb, int val, int codebook)
} }
} }
#define QSCALE(qmat,ind,val) ((val) / (qmat[ind])) #define QSCALE(qmat,ind,val) ((val) / ((qmat)[ind]))
#define TO_GOLOMB(val) ((val << 1) ^ (val >> 31)) #define TO_GOLOMB(val) (((val) << 1) ^ ((val) >> 31))
#define DIFF_SIGN(val, sign) ((val >> 31) ^ sign) #define DIFF_SIGN(val, sign) (((val) >> 31) ^ (sign))
#define IS_NEGATIVE(val) (((val >> 31) ^ -1) + 1) #define IS_NEGATIVE(val) ((((val) >> 31) ^ -1) + 1)
#define TO_GOLOMB2(val,sign) (val==0 ? 0 : (val << 1) + sign) #define TO_GOLOMB2(val,sign) ((val)==0 ? 0 : ((val) << 1) + (sign))
static av_always_inline int get_level(int val) static av_always_inline int get_level(int val)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment