mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Allow a video end a couple packets from end.
Fixes #2206, Patapon 3. Possibly we don't even need this check at all, but I'm not sure.
This commit is contained in:
parent
4cbd44a6ca
commit
2ce4cd245f
1 changed files with 3 additions and 1 deletions
|
@ -399,7 +399,9 @@ bool MediaEngine::stepVideo(int videoPixelMode) {
|
|||
bGetFrame = true;
|
||||
}
|
||||
if (result <= 0 && dataEnd) {
|
||||
m_isVideoEnd = !bGetFrame && m_readSize >= m_streamSize;
|
||||
// Sometimes, m_readSize is less than m_streamSize at the end, but not by much.
|
||||
// This is kinda a hack, but the ringbuffer would have to be prematurely empty too.
|
||||
m_isVideoEnd = !bGetFrame && m_readSize >= (m_streamSize - 4096);
|
||||
if (m_isVideoEnd)
|
||||
m_decodedPos = m_readSize;
|
||||
break;
|
||||
|
|
Loading…
Add table
Reference in a new issue