[APU] Removed old hack that invalidates input on decoder error
Added returning parsing error while decoder fails
This commit is contained in:
parent
6e541536dd
commit
9fdfd2ada9
|
@ -633,9 +633,8 @@ void XmaContext::Decode(XMA_CONTEXT_DATA* data) {
|
||||||
*/
|
*/
|
||||||
if (ret < 0) {
|
if (ret < 0) {
|
||||||
XELOGE("XmaContext {}: Error during decoding", id());
|
XELOGE("XmaContext {}: Error during decoding", id());
|
||||||
data->input_buffer_0_valid = 0;
|
data->parser_error_status = 4; // TODO(Gliniak): Find all parsing errors
|
||||||
data->input_buffer_1_valid = 0;
|
// and create enumerator from them
|
||||||
|
|
||||||
assert_always();
|
assert_always();
|
||||||
return; // TODO bail out
|
return; // TODO bail out
|
||||||
}
|
}
|
||||||
|
|
|
@ -81,7 +81,7 @@ struct XMA_CONTEXT_DATA {
|
||||||
// DWORD 3
|
// DWORD 3
|
||||||
uint32_t loop_start : 26; // XMASetLoopData LoopStartOffset
|
uint32_t loop_start : 26; // XMASetLoopData LoopStartOffset
|
||||||
// frame offset in bits
|
// frame offset in bits
|
||||||
uint32_t unk_dword_3 : 6; // ? ParserErrorStatus/ParserErrorSet(?)
|
uint32_t parser_error_status : 6; // ? ParserErrorStatus/ParserErrorSet(?)
|
||||||
|
|
||||||
// DWORD 4
|
// DWORD 4
|
||||||
uint32_t loop_end : 26; // XMASetLoopData LoopEndOffset
|
uint32_t loop_end : 26; // XMASetLoopData LoopEndOffset
|
||||||
|
|
Loading…
Reference in New Issue