Browse code

avfilter/vf_subtitles: Add () to protect the argument of the AA() macro

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>

Michael Niedermayer authored on 2015/02/19 09:51:54
Showing 1 changed files
... ...
@@ -153,7 +153,7 @@ static int config_input(AVFilterLink *inlink)
153 153
 #define AR(c)  ( (c)>>24)
154 154
 #define AG(c)  (((c)>>16)&0xFF)
155 155
 #define AB(c)  (((c)>>8) &0xFF)
156
-#define AA(c)  ((0xFF-c) &0xFF)
156
+#define AA(c)  ((0xFF-(c)) &0xFF)
157 157
 
158 158
 static void overlay_ass_image(AssContext *ass, AVFrame *picref,
159 159
                               const ASS_Image *image)