Fix an error with s24 deinterleaving.

This commit is contained in:
David Reid
2026-02-15 16:15:25 +10:00
parent 13f50137b0
commit 01e5042bfb
+3 -3
View File
@@ -52962,9 +52962,9 @@ MA_API void ma_deinterleave_pcm_frames(ma_format format, ma_uint32 channels, ma_
ma_uint32 iChannel; ma_uint32 iChannel;
for (iChannel = 0; iChannel < channels; iChannel += 1) { for (iChannel = 0; iChannel < channels; iChannel += 1) {
ma_uint8* pDstS24 = (ma_uint8*)ppDeinterleavedPCMFrames[iChannel]; ma_uint8* pDstS24 = (ma_uint8*)ppDeinterleavedPCMFrames[iChannel];
pDstS24[iPCMFrame + 0] = pSrcS24[(iPCMFrame*channels+iChannel)*3 + 0]; pDstS24[iPCMFrame*3 + 0] = pSrcS24[(iPCMFrame*channels+iChannel)*3 + 0];
pDstS24[iPCMFrame + 1] = pSrcS24[(iPCMFrame*channels+iChannel)*3 + 1]; pDstS24[iPCMFrame*3 + 1] = pSrcS24[(iPCMFrame*channels+iChannel)*3 + 1];
pDstS24[iPCMFrame + 2] = pSrcS24[(iPCMFrame*channels+iChannel)*3 + 2]; pDstS24[iPCMFrame*3 + 2] = pSrcS24[(iPCMFrame*channels+iChannel)*3 + 2];
} }
} }
} break; } break;