diff options
author | Chris Robinson <[email protected]> | 2021-02-23 21:07:34 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2021-02-23 21:07:34 -0800 |
commit | e1d62e2e77186e5603b4d58d7fa6354cd493a64b (patch) | |
tree | c5160c907614e2c4bfc00f9377da2df558b16b1b /core/bsinc_tables.cpp | |
parent | 5647aa4042ec64667cd2ba384e30769daa606ab4 (diff) |
Avoid an unnecessary loop iteration
Diffstat (limited to 'core/bsinc_tables.cpp')
-rw-r--r-- | core/bsinc_tables.cpp | 5 |
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}; |