[APU] Removed old hack that invalidates input on decoder error

Added returning parsing error while decoder fails
This commit is contained in:
Gliniak 2022-11-26 17:25:39 +01:00
parent 6e541536dd
commit 9fdfd2ada9
2 changed files with 3 additions and 4 deletions

View File

@ -633,9 +633,8 @@ void XmaContext::Decode(XMA_CONTEXT_DATA* data) {
*/
if (ret < 0) {
XELOGE("XmaContext {}: Error during decoding", id());
data->input_buffer_0_valid = 0;
data->input_buffer_1_valid = 0;
data->parser_error_status = 4; // TODO(Gliniak): Find all parsing errors
// and create enumerator from them
assert_always();
return; // TODO bail out
}

View File

@ -81,7 +81,7 @@ struct XMA_CONTEXT_DATA {
// DWORD 3
uint32_t loop_start : 26; // XMASetLoopData LoopStartOffset
// frame offset in bits
uint32_t unk_dword_3 : 6; // ? ParserErrorStatus/ParserErrorSet(?)
uint32_t parser_error_status : 6; // ? ParserErrorStatus/ParserErrorSet(?)
// DWORD 4
uint32_t loop_end : 26; // XMASetLoopData LoopEndOffset