History

avfilter/vf_ssim360: Fix left-shift of negative value

Andreas Rheinhardt committed 3 years ago

Commit 54659e31 parent c0cf2c41 file · +1 −1Browse files

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

Unified · Split

libavfilter/vf_ssim360.c+1−1
@@ -547,7 +547,7 @@ static double ssim360_db(double ssim360, double weight) · 546 unmodified lines
547static int get_bilinear_sample(const uint8_t *data, BilinearMap *m, int max_value)547static int get_bilinear_sample(const uint8_t *data, BilinearMap *m, int max_value)
548{548{
549 static const int fixed_point_half = 1 << (FIXED_POINT_PRECISION - 1);549 static const int fixed_point_half = 1 << (FIXED_POINT_PRECISION - 1);
550 static const int inv_byte_mask = (-1) << 8;550 static const int inv_byte_mask = UINT_MAX << 8;
551 551
552 int tl, tr, bl, br, v;552 int tl, tr, bl, br, v;
553 553

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