mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-21 10:55:51 +02:00
avfilter/vf_ssim: use unsigned so result can be properly stored
Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
parent
cbbd330abc
commit
1212041c91
@ -109,8 +109,8 @@ static void ssim_4x4xn_16bit(const uint8_t *main8, ptrdiff_t main_stride,
|
||||
|
||||
for (y = 0; y < 4; y++) {
|
||||
for (x = 0; x < 4; x++) {
|
||||
int a = main16[x + y * main_stride];
|
||||
int b = ref16[x + y * ref_stride];
|
||||
unsigned a = main16[x + y * main_stride];
|
||||
unsigned b = ref16[x + y * ref_stride];
|
||||
|
||||
s1 += a;
|
||||
s2 += b;
|
||||
|
Loading…
Reference in New Issue
Block a user