Commit c182c706 authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/movtextdec: add () to CMP() macro to avoid unexpected behavior

Reviewed-by: 's avatarAndreas Rheinhardt <andreas.rheinhardt@outlook.com>
Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent 36680078
......@@ -263,7 +263,7 @@ static int decode_hclr(const uint8_t *tsmb, MovTextContext *m, uint64_t size)
static int styles_equivalent(const StyleBox *a, const StyleBox *b)
{
#define CMP(field) a->field == b->field
#define CMP(field) ((a)->field == (b)->field)
return CMP(bold) && CMP(italic) && CMP(underline) && CMP(color) &&
CMP(alpha) && CMP(fontsize) && CMP(font_id);
#undef CMP
......
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