projects
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cbbd330
)
avfilter/vf_ssim: use unsigned so result can be properly stored
author
Paul B Mahol
<onemda@gmail.com>
Tue, 4 Jul 2017 08:21:14 +0000
(10:21 +0200)
committer
Paul B Mahol
<onemda@gmail.com>
Tue, 4 Jul 2017 08:21:14 +0000
(10:21 +0200)
Signed-off-by: Paul B Mahol <onemda@gmail.com>
libavfilter/vf_ssim.c
patch
|
blob
|
history
diff --git
a/libavfilter/vf_ssim.c
b/libavfilter/vf_ssim.c
index
fa2c2c1
..
c3c2042
100644
(file)
--- 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;