avfilter/vf_removelogo: Add () to protect the argument of apply_mask_fudge_factor()
authorMichael Niedermayer <michaelni@gmx.at>
Wed, 18 Feb 2015 00:56:19 +0000 (01:56 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Wed, 18 Feb 2015 00:56:19 +0000 (01:56 +0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavfilter/vf_removelogo.c

index 555517f..dd7629f 100644 (file)
@@ -114,7 +114,7 @@ AVFILTER_DEFINE_CLASS(removelogo);
  * opinion. This will calculate only at init-time, so you can put a
  * long expression here without effecting performance.
  */
-#define apply_mask_fudge_factor(x) (((x) >> 2) + x)
+#define apply_mask_fudge_factor(x) (((x) >> 2) + (x))
 
 /**
  * Pre-process an image to give distance information.