Merge pull request #5404 from xperia64/wmf_aac_bad

Fix WMF AAC Decoder Bug
This commit is contained in:
Pengfei Zhu 2020-06-11 22:23:41 +08:00 committed by GitHub
commit 565e5988ef
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -163,9 +163,10 @@ MFOutputState WMFDecoder::Impl::DecodingLoop(ADTSData adts_header,
}
}
// in case of "ok" only, just return quickly
// If we return OK here, the decoder won't be in a state to receive new data and will fail
// on the next call; instead treat it like the HaveMoreData case
if (output_status == MFOutputState::OK)
return MFOutputState::OK;
continue;
// for status = 2, reset MF
if (output_status == MFOutputState::NeedReconfig) {