diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2023-01-28 18:01:25 +0100 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2023-01-28 18:18:57 +0100 |
commit | 54659e329e88083eeb5ce3caa328dbc9319a8372 (patch) | |
tree | 7405c778a83123f036f71f53e6a36561fedc24b2 /libavfilter/vf_ssim360.c | |
parent | c0cf2c47864bde4db155909e77436008654fef27 (diff) | |
download | ffmpeg-54659e329e88083eeb5ce3caa328dbc9319a8372.tar.gz |
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>
Diffstat (limited to 'libavfilter/vf_ssim360.c')
-rw-r--r-- | libavfilter/vf_ssim360.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/vf_ssim360.c b/libavfilter/vf_ssim360.c index a0bf73da1e..89f5100740 100644 --- a/libavfilter/vf_ssim360.c +++ b/libavfilter/vf_ssim360.c @@ -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 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; |