mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-29 17:23:40 +01:00
Fix frozen black screens for non-FFMPEG platforms
This commit is contained in:
1 parent
bfb9b2fd6d
commit
0839a6ed07
1 file changed
+1
-2
@@ -371,12 +371,11 @@ void MediaEngine::updateSwsFormat(int videoPixelMode) {
|
||||
bool MediaEngine::stepVideo(int videoPixelMode) {
|
||||
// if video engine is broken, force to add timestamp
|
||||
m_videopts += 3003;
|
||||
|
||||
#ifdef USE_FFMPEG
|
||||
if (!m_pFormatCtx)
|
||||
return false;
|
||||
if (!m_pCodecCtx)
|
||||
return false;
|
||||
#ifdef USE_FFMPEG
|
||||
updateSwsFormat(videoPixelMode);
|
||||
// TODO: Technically we could set this to frameWidth instead of m_desWidth for better perf.
|
||||
// Update the linesize for the new format too. We started with the largest size, so it should fit.
|
||||
|
||||
Reference in new issue
Block a user