You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
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:
@@ -46,7 +46,7 @@
|
|||||||
*
|
*
|
||||||
* (The result is actually multiplied by 25)
|
* (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
|
* Find which field combination has the smallest average squared difference
|
||||||
|
Reference in New Issue
Block a user