[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 "
|
||||
"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) {
|
||||
|
|
Loading…
Reference in New Issue