From 95ff456c3335c2c541e2bc5038a2b01eea08cd33 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Storsj=C3=B6?= Date: Wed, 3 Mar 2021 14:11:36 +0200 Subject: [PATCH] Fix the mask for odd widths for ScaleRowUp2_Linear*_Any_NEON These NEON functions produce 16 pixels per iteration each, thus use the mask 15, not 7. Change-Id: I1f3eb691a9ca4af705393b2842b18b65f6878926 Reviewed-on: https://chromium-review.googlesource.com/c/libyuv/libyuv/+/2731801 Reviewed-by: Frank Barchard --- source/scale_any.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/scale_any.cc b/source/scale_any.cc index 7a7af2480..965749c41 100644 --- a/source/scale_any.cc +++ b/source/scale_any.cc @@ -708,7 +708,7 @@ SUH2LANY(ScaleRowUp2_Linear_Any_NEON, SUH2LANY(ScaleRowUp2_Linear_12_Any_NEON, ScaleRowUp2_Linear_12_NEON, ScaleRowUp2_Linear_16_C, - 7, + 15, uint16_t) #endif @@ -716,7 +716,7 @@ SUH2LANY(ScaleRowUp2_Linear_12_Any_NEON, SUH2LANY(ScaleRowUp2_Linear_16_Any_NEON, ScaleRowUp2_Linear_16_NEON, ScaleRowUp2_Linear_16_C, - 7, + 15, uint16_t) #endif