Commit cf57147d authored by Andreas Rheinhardt's avatar Andreas Rheinhardt

avfilter/phase_template: Fix left-shift of negative numbers

Affected the filter-phase FATE-test.
Signed-off-by: 's avatarAndreas Rheinhardt <andreas.rheinhardt@outlook.com>
parent e72e8ec5
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment