Browse Source

avfilter/vf_phase: Add () to protect DIFF()s arguments

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.6
Michael Niedermayer 10 years ago
parent
commit
f15c734be1
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavfilter/vf_phase.c

+ 1
- 1
libavfilter/vf_phase.c View File

@@ -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


Loading…
Cancel
Save