mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-29 17:23:40 +01:00
Delay video decode until we have enough packets.
This commit is contained in:
1 parent
6192feb27a
commit
23cefa03c6
1 file changed
+1
-1
@@ -291,7 +291,7 @@ int MediaEngine::addStreamData(u8* buffer, int addSize) {
|
||||
if (size > 0 && m_pdata) {
|
||||
memcpy(m_pdata + m_readSize, buffer, size);
|
||||
m_readSize += size;
|
||||
if (!m_pFormatCtx && m_readSize > 0x2000)
|
||||
if (!m_pFormatCtx && (m_readSize > 0x20000 || m_readSize >= m_streamSize))
|
||||
openContext();
|
||||
if (m_demux) {
|
||||
m_demux->setReadSize(m_readSize);
|
||||
|
||||
Reference in new issue
Block a user