mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
avfilter/vf_phase: Add () to protect DIFF()s arguments
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
0cb95f9082
commit
f15c734be1
@ -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…
Reference in New Issue
Block a user