Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Michael Niedermayer authored on 2014/06/25 04:40:57... | ... |
@@ -37,7 +37,7 @@ |
37 | 37 |
#include "libavutil/pixdesc.h" |
38 | 38 |
#include "libavutil/avstring.h" |
39 | 39 |
|
40 |
-#define NS(n) n < 0 ? (int)(n*65536.0-0.5+DBL_EPSILON) : (int)(n*65536.0+0.5) |
|
40 |
+#define NS(n) ((n) < 0 ? (int)((n)*65536.0-0.5+DBL_EPSILON) : (int)((n)*65536.0+0.5)) |
|
41 | 41 |
#define CB(n) av_clip_uint8(n) |
42 | 42 |
|
43 | 43 |
static const double yuv_coeff[4][3][3] = { |