Commit 1212041c authored by Paul B Mahol's avatar Paul B Mahol

avfilter/vf_ssim: use unsigned so result can be properly stored

Signed-off-by: 's avatarPaul B Mahol <onemda@gmail.com>
parent cbbd330a
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment