Commit 83178a1d authored by David Reid's avatar David Reid

Fix a buffer overflow in the mixer.

parent 5dda38d4
......@@ -2369,6 +2369,11 @@ MA_API ma_result ma_mixer_begin(ma_mixer* pMixer, ma_mixer* pParentMixer, ma_uin
}
} else {
frameCountIn = frameCountOut;
if (frameCountIn > pMixer->accumulationBufferSizeInFrames) {
frameCountIn = pMixer->accumulationBufferSizeInFrames;
frameCountOut = pMixer->accumulationBufferSizeInFrames;
}
}
/* If the output frame count cannot match the parent's input frame count we need to fail. */
......
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