From 7c1fb7d0ff1a8286e9086b80181117eedac82cc4 Mon Sep 17 00:00:00 2001 From: Pascal Massimino Date: Wed, 14 Sep 2016 20:26:05 +0200 Subject: [PATCH] fix uint32_t initialization (0. -> 0) Change-Id: Ia4aae27f70c4e74ddeb5654cfabb21d785cea9cf --- src/dsp/enc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dsp/enc.c b/src/dsp/enc.c index 269f0602..3013b87c 100644 --- a/src/dsp/enc.c +++ b/src/dsp/enc.c @@ -727,7 +727,7 @@ double VP8SSIMFromStatsClipped(const VP8DistoStats* const stats) { static double SSIMGetClipped_C(const uint8_t* src1, int stride1, const uint8_t* src2, int stride2, int xo, int yo, int W, int H) { - VP8DistoStats stats = { 0., 0., 0., 0., 0., 0. }; + VP8DistoStats stats = { 0, 0, 0, 0, 0, 0 }; const int ymin = (yo - VP8_SSIM_KERNEL < 0) ? 0 : yo - VP8_SSIM_KERNEL; const int ymax = (yo + VP8_SSIM_KERNEL > H - 1) ? H - 1 : yo + VP8_SSIM_KERNEL; @@ -754,7 +754,7 @@ static double SSIMGetClipped_C(const uint8_t* src1, int stride1, static double SSIMGet_C(const uint8_t* src1, int stride1, const uint8_t* src2, int stride2) { - VP8DistoStats stats = { 0., 0., 0., 0., 0., 0. }; + VP8DistoStats stats = { 0, 0, 0, 0, 0, 0 }; int x, y; for (y = 0; y <= 2 * VP8_SSIM_KERNEL; ++y, src1 += stride1, src2 += stride2) { for (x = 0; x <= 2 * VP8_SSIM_KERNEL; ++x) {