Skip to content

Commit b663126

Browse files
committed
Fix out-of-bounds error when Sinc only has one sample left
1 parent c8f9625 commit b663126

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/interpolate.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ impl<F> Interpolator for Sinc<F>
395395
}
396396

397397
fn is_exhausted(&self) -> bool {
398-
self.frames.len() <= self.depth
398+
self.frames.len() <= (self.depth + 1)
399399
&& self.idx == self.depth
400400
}
401401
}

0 commit comments

Comments
 (0)