History

avfilter/phase_template: Fix left-shift of negative numbers

Affected the filter-phase FATE-test.

Andreas Rheinhardt committed 4 years ago

Commit cf571471 parent e72e8ec1 file · +1 −1Browse files

Showing the changes to libavfilter (1 of 1 file). Show all

Unified · Split

libavfilter/phase_template.c+1−1
@@ -46,7 +46,7 @@ · 45 unmodified lines
46 *46 *
47 * (The result is actually multiplied by 25)47 * (The result is actually multiplied by 25)
48 */48 */
49#define DIFF(a, as, b, bs) ((t) = ((*(a) - (b)[bs]) << 2) + (a)[(as) << 1] - (b)[-(bs)], (t) * (t))49#define DIFF(a, as, b, bs) ((t) = ((*(a) - (b)[bs]) * 4) + (a)[(as) * 2] - (b)[-(bs)], (t) * (t))
50 50
51/*51/*
52 * Find which field combination has the smallest average squared difference52 * Find which field combination has the smallest average squared difference

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t