mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-14 01:59:34 +01:00
Merge pull request #1744 from oioitff/atrac-fix
Revert #1731 for sceAtrac
This commit is contained in:
commit
a4326d689c
1 file changed
-3
@@ -429,9 +429,6 @@ u32 sceAtracAddStreamData(int atracID, u32 bytesToAdd)
|
||||
// TODO
|
||||
if (bytesToAdd > atrac->first.writableBytes)
|
||||
return ATRAC_ERROR_ADD_DATA_IS_TOO_BIG;
|
||||
// only add stream data when it need more atrac data
|
||||
if (atrac->getRemainFrames() > 0)
|
||||
return 0;
|
||||
|
||||
if (atrac->data_buf && (bytesToAdd > 0)) {
|
||||
int addbytes = std::min(bytesToAdd, atrac->first.filesize - atrac->first.fileoffset);
|
||||
|
||||
Reference in new issue
Block a user