mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-12-02 10:43:44 +01:00
Merge pull request #4828 from unknownbrackets/mpeg-minor
Fix some issues with looping videos, and videos added in tiny chunks
This commit is contained in:
commit
a95930a788
3 files changed
+7
-2
No files matched your search
+1
-1
@@ -394,7 +394,7 @@ const HLEFunction sceNetInet[] = {
|
||||
{0xcda85c99, WrapI_IUUU<sceNetInetRecv>, "sceNetInetRecv"},
|
||||
{0xc91142e4, 0, "sceNetInetRecvfrom"},
|
||||
{0xeece61d2, 0, "sceNetInetRecvmsg"},
|
||||
{0x7aa671bc, WrapI_IUUU<sceNetInetRecv>, "sceNetInetSend"},
|
||||
{0x7aa671bc, WrapI_IUUU<sceNetInetSend>, "sceNetInetSend"},
|
||||
{0x05038fc7, 0, "sceNetInetSendto"},
|
||||
{0x774e36f4, 0, "sceNetInetSendmsg"},
|
||||
{0xfbabe411, WrapI_V<sceNetInetGetErrno>, "sceNetInetGetErrno"},
|
||||
|
||||
@@ -333,13 +333,16 @@ int MediaEngine::addStreamData(u8* buffer, int addSize) {
|
||||
m_demux->demux(m_audioStream);
|
||||
}
|
||||
#ifdef USE_FFMPEG
|
||||
if (!m_pFormatCtx) {
|
||||
if (!m_pFormatCtx && m_pdata->getQueueSize() >= 2048 * 6) {
|
||||
m_pdata->get_front(m_mpegheader, sizeof(m_mpegheader));
|
||||
int mpegoffset = bswap32(*(int*)(m_mpegheader + 8));
|
||||
m_pdata->pop_front(0, mpegoffset);
|
||||
openContext();
|
||||
}
|
||||
#endif // USE_FFMPEG
|
||||
|
||||
// We added data, so... not the end anymore?
|
||||
m_isVideoEnd = false;
|
||||
}
|
||||
return size;
|
||||
}
|
||||
|
||||
@@ -1548,6 +1548,8 @@ void GLES_GPU::DoBlockTransfer() {
|
||||
// TODO: Notify all overlapping FBOs that they need to reload.
|
||||
|
||||
textureCache_.Invalidate(dstBasePtr + (dstY * dstStride + dstX) * bpp, height * dstStride * bpp, GPU_INVALIDATE_HINT);
|
||||
if (Memory::IsRAMAddress(srcBasePtr) && Memory::IsVRAMAddress(dstBasePtr))
|
||||
framebufferManager_.UpdateFromMemory(dstBasePtr, (dstY + height) * dstStride * bpp, true);
|
||||
|
||||
// A few games use this INSTEAD of actually drawing the video image to the screen, they just blast it to
|
||||
// the backbuffer. Detect this and have the framebuffermanager draw the pixels.
|
||||
|
||||
Reference in new issue
Block a user