Commit e3f71423 authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/vc1dsp: add () to protect the arguments of the op* macros

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent cb9d4045
...@@ -723,10 +723,10 @@ static void OPNAME ## pixels16x16_c(uint8_t *block, const uint8_t *pixels, ptrdi ...@@ -723,10 +723,10 @@ static void OPNAME ## pixels16x16_c(uint8_t *block, const uint8_t *pixels, ptrdi
}\ }\
} }
#define op_put(a, b) a = av_clip_uint8(b) #define op_put(a, b) (a) = av_clip_uint8(b)
#define op_avg(a, b) a = (a + av_clip_uint8(b) + 1) >> 1 #define op_avg(a, b) (a) = ((a) + av_clip_uint8(b) + 1) >> 1
#define op4_avg(a, b) a = rnd_avg32(a, b) #define op4_avg(a, b) (a) = rnd_avg32(a, b)
#define op4_put(a, b) a = b #define op4_put(a, b) (a) = (b)
VC1_MSPEL_MC(op_put, op4_put, put_) VC1_MSPEL_MC(op_put, op4_put, put_)
VC1_MSPEL_MC(op_avg, op4_avg, avg_) VC1_MSPEL_MC(op_avg, op4_avg, avg_)
......
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