aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/plugins/Effect/srconverter/srconverter.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/Effect/srconverter/srconverter.cpp b/src/plugins/Effect/srconverter/srconverter.cpp
index 239d426ad..c5614d6ca 100644
--- a/src/plugins/Effect/srconverter/srconverter.cpp
+++ b/src/plugins/Effect/srconverter/srconverter.cpp
@@ -120,8 +120,8 @@ void SRConverter::configure(quint32 freq, ChannelMap map, Qmmp::AudioFormat for
qDebug("SRConverter: src_new(): %s", src_strerror(m_srcError));
m_sz = audioParameters().sampleSize();
- m_src_data.data_in = new float[QMMP_BLOCK_FRAMES * channels() * 2];
- m_src_data.data_out = new float[int(m_src_data.src_ratio * QMMP_BLOCK_FRAMES * channels() * 2 + 2)];
+ m_src_data.data_in = new float[QMMP_BLOCK_FRAMES * map.count() * 2];
+ m_src_data.data_out = new float[int(m_src_data.src_ratio * QMMP_BLOCK_FRAMES * map.count() * 2 + 2)];
}
Effect::configure(m_overSamplingFs, map, format);
}