summaryrefslogtreecommitdiff
path: root/libavfilter/vf_colormatrix.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-06-24 21:40:57 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-06-24 21:43:40 +0200
commit0ed110133f77437a36f7dc91a4fb011b88f55c28 (patch)
tree79d6e81262ea05fc26035c204e6bdde77093e0f5 /libavfilter/vf_colormatrix.c
parentc11043aca7365add6c4c80b7cff80d22dde0eb94 (diff)
avfilter/vf_colormatrix: fix macro ()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavfilter/vf_colormatrix.c')
-rw-r--r--libavfilter/vf_colormatrix.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/vf_colormatrix.c b/libavfilter/vf_colormatrix.c
index 5ab175b65d..91ca057fd0 100644
--- a/libavfilter/vf_colormatrix.c
+++ b/libavfilter/vf_colormatrix.c
@@ -37,7 +37,7 @@
#include "libavutil/pixdesc.h"
#include "libavutil/avstring.h"
-#define NS(n) n < 0 ? (int)(n*65536.0-0.5+DBL_EPSILON) : (int)(n*65536.0+0.5)
+#define NS(n) ((n) < 0 ? (int)((n)*65536.0-0.5+DBL_EPSILON) : (int)((n)*65536.0+0.5))
#define CB(n) av_clip_uint8(n)
static const double yuv_coeff[4][3][3] = {