summaryrefslogtreecommitdiff
path: root/libavfilter/vf_subtitles.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-02-19 01:51:54 +0100
committerMichael Niedermayer <michaelni@gmx.at>2015-02-19 01:51:54 +0100
commit9d88be68733be940651d0ee16df257f73d43023d (patch)
treeb836cc089a51ee3af6ec74ca8eb1c3265f02e20a /libavfilter/vf_subtitles.c
parente0be5c4fbedd3c27ef784807e0981b1085c656bd (diff)
avfilter/vf_subtitles: Add () to protect the argument of the AA() macro
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavfilter/vf_subtitles.c')
-rw-r--r--libavfilter/vf_subtitles.c2
1 files changed, 1 insertions, 1 deletions
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)