From 9d88be68733be940651d0ee16df257f73d43023d Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Thu, 19 Feb 2015 01:51:54 +0100 Subject: [PATCH] avfilter/vf_subtitles: Add () to protect the argument of the AA() macro Signed-off-by: Michael Niedermayer --- libavfilter/vf_subtitles.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavfilter/vf_subtitles.c b/libavfilter/vf_subtitles.c index f7fc1a6707..90416b5076 100644 --- a/libavfilter/vf_subtitles.c +++ b/libavfilter/vf_subtitles.c @@ -153,7 +153,7 @@ static int config_input(AVFilterLink *inlink) #define AR(c) ( (c)>>24) #define AG(c) (((c)>>16)&0xFF) #define AB(c) (((c)>>8) &0xFF) -#define AA(c) ((0xFF-c) &0xFF) +#define AA(c) ((0xFF-(c)) &0xFF) static void overlay_ass_image(AssContext *ass, AVFrame *picref, const ASS_Image *image)