mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Merge pull request #20132 from hrydgard/atrac-new-impl-crashfix
Fix minor logic error in Atrac2
This commit is contained in:
commit
c71a72cbe7
1 changed files with 2 additions and 1 deletions
|
@ -694,10 +694,11 @@ u32 Atrac2::DecodeInternal(u32 outbufAddr, int *SamplesNum, int *finish) {
|
|||
u32 inAddr = bufferPtr + streamOff;
|
||||
int16_t *outPtr;
|
||||
|
||||
_dbg_assert_(samplesToDecode <= info.SamplesPerFrame());
|
||||
if (samplesToDecode != info.SamplesPerFrame()) {
|
||||
outPtr = decodeTemp_;
|
||||
} else {
|
||||
outPtr = (int16_t *)Memory::GetPointer(outbufAddr);
|
||||
outPtr = outbufAddr ? (int16_t *)Memory::GetPointer(outbufAddr) : 0; // outbufAddr can be 0 during skip!
|
||||
}
|
||||
|
||||
context_->codec.inBuf = inAddr;
|
||||
|
|
Loading…
Add table
Reference in a new issue