diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2015-02-17 00:47:47 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-02-17 00:47:47 +0100 |
commit | f15c734be1650cee240cd65b0dbd31fe6993a5bc (patch) | |
tree | 30487d26150491ecdebd400cc2043213e354d2ea /libavfilter/vf_phase.c | |
parent | 0cb95f908298bf31058fc0d08d13178bebfa3170 (diff) | |
download | ffmpeg-f15c734be1650cee240cd65b0dbd31fe6993a5bc.tar.gz |
avfilter/vf_phase: Add () to protect DIFF()s arguments
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavfilter/vf_phase.c')
-rw-r--r-- | libavfilter/vf_phase.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/vf_phase.c b/libavfilter/vf_phase.c index 82dc603efe..23b339c880 100644 --- a/libavfilter/vf_phase.c +++ b/libavfilter/vf_phase.c @@ -106,7 +106,7 @@ static int config_input(AVFilterLink *inlink) * * (The result is actually multiplied by 25) */ -#define DIFF(a, as, b, bs) (t = ((*a - b[bs]) << 2) + a[as << 1] - b[-bs], t * t) +#define DIFF(a, as, b, bs) ((t) = ((*(a) - (b)[bs]) << 2) + (a)[(as) << 1] - (b)[-(bs)], (t) * (t)) /* * Find which field combination has the smallest average squared difference |