Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/videolan/dav1d.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRonald S. Bultje <rsbultje@gmail.com>2018-11-12 17:39:30 +0300
committerRonald S. Bultje <rsbultje@gmail.com>2018-11-12 18:26:51 +0300
commita977ede2e4890e9a24486dbd8aba37a23f56b04d (patch)
treec2391739a06010c1a67d0ac8896e9f0dd0d99c13
parent88481ca4be070b990d69207111432c091b3cba21 (diff)
Fix type mismatch (int32_t vs. int)
-rw-r--r--src/looprestoration_tmpl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/looprestoration_tmpl.c b/src/looprestoration_tmpl.c
index a4cc44d..8370a7d 100644
--- a/src/looprestoration_tmpl.c
+++ b/src/looprestoration_tmpl.c
@@ -324,7 +324,7 @@ static void boxsum3sqr(int32_t *dst, const pixel *src, const int w, const int h)
// We skip the first and last columns, as they are never used
for (int x = 1; x < w - 1; x++) {
- int *ds = dst + x;
+ int32_t *ds = dst + x;
const pixel *s = src + x;
int a = s[0] * s[0];
int b = s[REST_UNIT_STRIDE] * s[REST_UNIT_STRIDE];
@@ -367,7 +367,7 @@ static void boxsum5sqr(int32_t *dst, const pixel *const src, const int w,
dst += REST_UNIT_STRIDE;
for (int x = 0; x < w; x++) {
- int *ds = dst + x;
+ int32_t *ds = dst + x;
const pixel *s = src + 3 * REST_UNIT_STRIDE + x;
int a = s[-3 * REST_UNIT_STRIDE] * s[-3 * REST_UNIT_STRIDE];
int b = s[-2 * REST_UNIT_STRIDE] * s[-2 * REST_UNIT_STRIDE];