mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
parent
d83a5da6bd
commit
91323ebe92
1 changed files with 3 additions and 5 deletions
|
@ -313,8 +313,8 @@ void MediaEngine::closeContext()
|
|||
m_pCodecCtxs.clear();
|
||||
if (m_pFormatCtx)
|
||||
avformat_close_input(&m_pFormatCtx);
|
||||
if (m_sws_ctx != NULL)
|
||||
sws_freeContext(m_sws_ctx);
|
||||
sws_freeContext(m_sws_ctx);
|
||||
m_sws_ctx = NULL;
|
||||
m_pIOContext = 0;
|
||||
#endif
|
||||
m_buffer = 0;
|
||||
|
@ -414,9 +414,7 @@ bool MediaEngine::setVideoDim(int width, int height)
|
|||
// Allocate video frame
|
||||
m_pFrame = av_frame_alloc();
|
||||
|
||||
if (m_sws_ctx != NULL) {
|
||||
sws_freeContext(m_sws_ctx);
|
||||
}
|
||||
sws_freeContext(m_sws_ctx);
|
||||
m_sws_ctx = NULL;
|
||||
m_sws_fmt = -1;
|
||||
updateSwsFormat(GE_CMODE_32BIT_ABGR8888);
|
||||
|
|
Loading…
Add table
Reference in a new issue