mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-18 03:44:32 +01:00
Fix silly logic error in Atrac2
This commit is contained in:
1 parent
5d89fa31f9
commit
0aec6aeddd
1 file changed
+2
-1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user