avfilter/phase_template: Fix left-shift of negative numbers

Affected the filter-phase FATE-test.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
Andreas Rheinhardt 2022-11-06 17:15:22 +01:00
parent e72e8ec515
commit cf57147da1
1 changed files with 1 additions and 1 deletions

View File

@ -46,7 +46,7 @@
*
* (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]) * 4) + (a)[(as) * 2] - (b)[-(bs)], (t) * (t))
/*
* Find which field combination has the smallest average squared difference