From 2381d803c76105f44717d75f089ec37f51e5cfe4 Mon Sep 17 00:00:00 2001
From: qinxialei <xialeiqin@gmail.com>
Date: Thu, 22 Apr 2021 11:20:15 +0800
Subject: New upstream version 0.16.3

---
 src/dsp/super_res.cc | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

(limited to 'src/dsp/super_res.cc')

diff --git a/src/dsp/super_res.cc b/src/dsp/super_res.cc
index d041bd1..abb01a1 100644
--- a/src/dsp/super_res.cc
+++ b/src/dsp/super_res.cc
@@ -26,10 +26,10 @@ namespace {
 
 template <int bitdepth, typename Pixel>
 void SuperRes_C(const void* /*coefficients*/, void* const source,
-                const ptrdiff_t stride, const int height,
+                const ptrdiff_t source_stride, const int height,
                 const int downscaled_width, const int upscaled_width,
-                const int initial_subpixel_x, const int step,
-                void* const dest) {
+                const int initial_subpixel_x, const int step, void* const dest,
+                ptrdiff_t dest_stride) {
   assert(step <= 1 << kSuperResScaleBits);
   auto* src = static_cast<Pixel*>(source) - DivideBy2(kSuperResFilterTaps);
   auto* dst = static_cast<Pixel*>(dest);
@@ -61,8 +61,8 @@ void SuperRes_C(const void* /*coefficients*/, void* const source,
                      (1 << bitdepth) - 1);
       subpixel_x += step;
     } while (++x < upscaled_width);
-    src += stride;
-    dst += stride;
+    src += source_stride;
+    dst += dest_stride;
   } while (--y != 0);
 }
 
-- 
cgit v1.2.3