avcodec/movtextdec: add () to CMP() macro to avoid unexpected behavior
Reviewed-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> (cherry picked from commit c182c706589de2b513331c61a8597fa863d4e97f) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
f514336829
commit
405c75998d
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user