mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-22 23:33:07 +00:00
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>
This commit is contained in:
parent
36680078ca
commit
c182c70658
@ -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…
Reference in New Issue
Block a user