mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Atrac3: Bail on bad data
This commit is contained in:
parent
916184d2f4
commit
4bb9e32f03
1 changed files with 5 additions and 1 deletions
|
@ -580,7 +580,11 @@ u32 _AtracDecodeData(int atracID, u8* outbuf, u32 *SamplesNum, u32* finish, int
|
|||
if (avret < 0) {
|
||||
ERROR_LOG(HLE, "avcodec_decode_audio4: Error decoding audio %d", avret);
|
||||
av_free_packet(&packet);
|
||||
break;
|
||||
// Avoid getting stuck in a loop (Virtua Tennis)
|
||||
*SamplesNum = 0;
|
||||
*finish = 1;
|
||||
*remains = 0;
|
||||
return ATRAC_ERROR_ALL_DATA_DECODED;
|
||||
}
|
||||
|
||||
if (got_frame) {
|
||||
|
|
Loading…
Add table
Reference in a new issue