1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-08-10 06:10:52 +02:00

avfilter/vf_ssim360: Fix left-shift of negative value

Reviewed-by: Anton Khirnov <anton@khirnov.net>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
Andreas Rheinhardt
2023-01-28 18:01:25 +01:00
parent c0cf2c4786
commit 54659e329e

View File

@@ -547,7 +547,7 @@ static double ssim360_db(double ssim360, double weight)
static int get_bilinear_sample(const uint8_t *data, BilinearMap *m, int max_value) static int get_bilinear_sample(const uint8_t *data, BilinearMap *m, int max_value)
{ {
static const int fixed_point_half = 1 << (FIXED_POINT_PRECISION - 1); static const int fixed_point_half = 1 << (FIXED_POINT_PRECISION - 1);
static const int inv_byte_mask = (-1) << 8; static const int inv_byte_mask = UINT_MAX << 8;
int tl, tr, bl, br, v; int tl, tr, bl, br, v;