aboutsummaryrefslogtreecommitdiffstats
path: root/core/bsinc_tables.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2021-02-23 21:07:34 -0800
committerChris Robinson <[email protected]>2021-02-23 21:07:34 -0800
commite1d62e2e77186e5603b4d58d7fa6354cd493a64b (patch)
treec5160c907614e2c4bfc00f9377da2df558b16b1b /core/bsinc_tables.cpp
parent5647aa4042ec64667cd2ba384e30769daa606ab4 (diff)
Avoid an unnecessary loop iteration
Diffstat (limited to 'core/bsinc_tables.cpp')
-rw-r--r--core/bsinc_tables.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/core/bsinc_tables.cpp b/core/bsinc_tables.cpp
index 334822f5..919bc60b 100644
--- a/core/bsinc_tables.cpp
+++ b/core/bsinc_tables.cpp
@@ -161,9 +161,10 @@ struct BSincFilterArray {
auto filter = std::make_unique<filter_type>(BSincScaleCount);
/* Calculate the Kaiser-windowed Sinc filter coefficients for each
- * scale and phase index.
+ * scale and phase index. The output of scale index 0 is all 0s, so
+ * start at 1.
*/
- for(uint si{0};si < BSincScaleCount;++si)
+ for(uint si{1};si < BSincScaleCount;++si)
{
const uint m{hdr.a[si] * 2};
const size_t o{(BSincPointsMax-m) / 2};