Commit 1871138a authored by David Reid's avatar David Reid

Attempt to fix an error in the data converter.

This could happen when channel mapping is used without differing input
and output channel counts.

Public issue https://github.com/mackron/miniaudio/issues/427
parent f97bc10b
...@@ -52297,7 +52297,7 @@ static ma_result ma_data_converter_process_pcm_frames__channels_first(ma_data_co ...@@ -52297,7 +52297,7 @@ static ma_result ma_data_converter_process_pcm_frames__channels_first(ma_data_co
MA_ASSERT(pConverter != NULL); MA_ASSERT(pConverter != NULL);
MA_ASSERT(pConverter->resampler.format == pConverter->channelConverter.format); MA_ASSERT(pConverter->resampler.format == pConverter->channelConverter.format);
MA_ASSERT(pConverter->resampler.channels == pConverter->channelConverter.channelsOut); MA_ASSERT(pConverter->resampler.channels == pConverter->channelConverter.channelsOut);
MA_ASSERT(pConverter->resampler.channels < pConverter->channelConverter.channelsIn); MA_ASSERT(pConverter->resampler.channels <= pConverter->channelConverter.channelsIn);
frameCountIn = 0; frameCountIn = 0;
if (pFrameCountIn != NULL) { if (pFrameCountIn != NULL) {
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment