Skip to content
Snippets Groups Projects
Commit f15c734b authored by Michael Niedermayer's avatar Michael Niedermayer
Browse files

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

parent 0cb95f90
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment