Pull in multi-channel resampler fix (not directly relevant to RB)

This commit is contained in:
Chris Cannam
2021-09-30 15:36:21 +01:00
parent ef6cb4feb3
commit 66354796b8

View File

@@ -590,7 +590,9 @@ BQResampler::reconstruct_one(state *s) const
int phase_length = pr.length;
double result = 0.0;
int dot_length = min(phase_length, int(s->buffer.size()) - s->left);
int dot_length =
min(phase_length,
(int(s->buffer.size()) - s->left) / m_channels);
if (m_dynamism == RatioMostlyFixed) {
int phase_start = pr.start_index;