diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-06-24 21:43:22 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-06-24 21:43:40 +0200 |
commit | f364101144f1181ced8e2753c63731dfcaaec4f5 (patch) | |
tree | 04a440fa9724eedc0fdb0a8a80cdf089f1440f9e /libavfilter | |
parent | 0ed110133f77437a36f7dc91a4fb011b88f55c28 (diff) | |
download | ffmpeg-f364101144f1181ced8e2753c63731dfcaaec4f5.tar.gz |
avfilter/vf_deshake: fix macro ()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavfilter')
-rw-r--r-- | libavfilter/vf_deshake.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavfilter/vf_deshake.c b/libavfilter/vf_deshake.c index 6cfb171629..c68de3653d 100644 --- a/libavfilter/vf_deshake.c +++ b/libavfilter/vf_deshake.c @@ -62,8 +62,8 @@ #include "deshake.h" #include "deshake_opencl.h" -#define CHROMA_WIDTH(link) -((-link->w) >> av_pix_fmt_desc_get(link->format)->log2_chroma_w) -#define CHROMA_HEIGHT(link) -((-link->h) >> av_pix_fmt_desc_get(link->format)->log2_chroma_h) +#define CHROMA_WIDTH(link) (-((-(link)->w) >> av_pix_fmt_desc_get((link)->format)->log2_chroma_w)) +#define CHROMA_HEIGHT(link) (-((-(link)->h) >> av_pix_fmt_desc_get((link)->format)->log2_chroma_h)) #define OFFSET(x) offsetof(DeshakeContext, x) #define FLAGS AV_OPT_FLAG_VIDEO_PARAM|AV_OPT_FLAG_FILTERING_PARAM |