[APU][Janky] Fixed issues with incorrect frames on streamed data
This requires a lot more research and test data!
This commit is contained in:
parent
dae508500a
commit
ba66373d8c
|
@ -446,7 +446,11 @@ void XmaContext::Decode(XMA_CONTEXT_DATA* data) {
|
|||
reuse_input_buffer = TrySetupNextLoop(data, true);
|
||||
}
|
||||
if (!reuse_input_buffer) {
|
||||
is_stream_done_ = true;
|
||||
if (current_input_packet_count == 1) {
|
||||
SwapInputBuffer(data);
|
||||
} else {
|
||||
is_stream_done_ = true;
|
||||
}
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
@ -584,7 +588,11 @@ void XmaContext::Decode(XMA_CONTEXT_DATA* data) {
|
|||
reuse_input_buffer = TrySetupNextLoop(data, true);
|
||||
}
|
||||
if (!reuse_input_buffer) {
|
||||
is_stream_done_ = true;
|
||||
if (current_input_packet_count == 1) {
|
||||
SwapInputBuffer(data);
|
||||
} else {
|
||||
is_stream_done_ = true;
|
||||
}
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
@ -678,7 +686,11 @@ void XmaContext::Decode(XMA_CONTEXT_DATA* data) {
|
|||
reuse_input_buffer = TrySetupNextLoop(data, true);
|
||||
}
|
||||
if (!reuse_input_buffer) {
|
||||
is_stream_done_ = true;
|
||||
if (current_input_packet_count == 1) {
|
||||
SwapInputBuffer(data);
|
||||
} else {
|
||||
is_stream_done_ = true;
|
||||
}
|
||||
if (output_rb.write_offset() == output_rb.read_offset()) {
|
||||
data->output_buffer_valid = 0;
|
||||
}
|
||||
|
@ -699,7 +711,11 @@ void XmaContext::Decode(XMA_CONTEXT_DATA* data) {
|
|||
reuse_input_buffer = TrySetupNextLoop(data, true);
|
||||
}
|
||||
if (!reuse_input_buffer) {
|
||||
is_stream_done_ = true;
|
||||
if (current_input_packet_count == 1) {
|
||||
SwapInputBuffer(data);
|
||||
} else {
|
||||
is_stream_done_ = true;
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue