[FFmpeg-cvslog] avfilter/vf_colormatrix: fix macro ()

Michael Niedermayer git at videolan.org
Tue Jun 24 21:52:12 CEST 2014


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Tue Jun 24 21:40:57 2014 +0200| [0ed110133f77437a36f7dc91a4fb011b88f55c28] | committer: Michael Niedermayer

avfilter/vf_colormatrix: fix macro ()

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

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=0ed110133f77437a36f7dc91a4fb011b88f55c28
---

 libavfilter/vf_colormatrix.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavfilter/vf_colormatrix.c b/libavfilter/vf_colormatrix.c
index 5ab175b..91ca057 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] = {



More information about the ffmpeg-cvslog mailing list