summaryrefslogtreecommitdiff
path: root/libavfilter/vf_ssim.c
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2017-07-04 10:21:14 +0200
committerPaul B Mahol <onemda@gmail.com>2017-07-04 10:21:14 +0200
commit1212041c91b724da77c83f14980440115433e773 (patch)
tree3b26c8dee7234a01c76657b014790a7eb437735a /libavfilter/vf_ssim.c
parentcbbd330abc95d31ec3e67c6811333db015f54c01 (diff)
avfilter/vf_ssim: use unsigned so result can be properly stored
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavfilter/vf_ssim.c')
-rw-r--r--libavfilter/vf_ssim.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavfilter/vf_ssim.c b/libavfilter/vf_ssim.c
index fa2c2c1406..c3c204268f 100644
--- a/libavfilter/vf_ssim.c
+++ b/libavfilter/vf_ssim.c
@@ -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;