[APU] Handle exceeding input offset by switching buffer

This should resolve crashes in FH
This commit is contained in:
Gliniak 2022-11-02 08:47:36 +01:00
parent ff0f3fcc9d
commit 259679d53c
1 changed files with 2 additions and 0 deletions

View File

@ -428,6 +428,8 @@ void XmaContext::Decode(XMA_CONTEXT_DATA* data) {
"XmaContext {}: Error - Provided input offset exceed input buffer "
"size! ({} > {})",
id(), data->input_buffer_read_offset, current_input_size * 8);
SwapInputBuffer(data);
return;
}
// if we had a buffer swap try to skip packets first
if (packets_skip_ > 0) {