mirror of
https://github.com/xenia-project/xenia.git
synced 2025-12-06 07:12:03 +01:00
[APU] Handle exceeding input offset by switching buffer
This should resolve crashes in FH
This commit is contained in:
parent
ff0f3fcc9d
commit
259679d53c
|
|
@ -428,6 +428,8 @@ void XmaContext::Decode(XMA_CONTEXT_DATA* data) {
|
||||||
"XmaContext {}: Error - Provided input offset exceed input buffer "
|
"XmaContext {}: Error - Provided input offset exceed input buffer "
|
||||||
"size! ({} > {})",
|
"size! ({} > {})",
|
||||||
id(), data->input_buffer_read_offset, current_input_size * 8);
|
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 we had a buffer swap try to skip packets first
|
||||||
if (packets_skip_ > 0) {
|
if (packets_skip_ > 0) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue