mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-07-11 01:25:07 +02:00
@@ -343,8 +343,7 @@ bool MediaEngine::openContext(bool keepReadPos) {
|
||||
return true;
|
||||
}
|
||||
|
||||
void MediaEngine::closeContext()
|
||||
{
|
||||
void MediaEngine::closeContext() {
|
||||
#ifdef USE_FFMPEG
|
||||
if (m_buffer)
|
||||
av_free(m_buffer);
|
||||
@@ -356,7 +355,7 @@ void MediaEngine::closeContext()
|
||||
av_free(m_pIOContext->buffer);
|
||||
if (m_pIOContext)
|
||||
av_free(m_pIOContext);
|
||||
for (const auto &it : m_pCodecCtxs) {
|
||||
for (auto &it : m_pCodecCtxs) {
|
||||
#if LIBAVFORMAT_VERSION_INT >= AV_VERSION_INT(57, 33, 100)
|
||||
avcodec_free_context(&it.second);
|
||||
#else
|
||||
@@ -365,7 +364,7 @@ void MediaEngine::closeContext()
|
||||
}
|
||||
m_pCodecCtxs.clear();
|
||||
// These are streams allocated from avformat_new_stream.
|
||||
for (const auto &it : m_codecsToClose) {
|
||||
for (auto &it : m_codecsToClose) {
|
||||
avcodec_close(it);
|
||||
}
|
||||
m_codecsToClose.clear();
|
||||
|
||||
@@ -113,7 +113,7 @@ public: // TODO: Very little of this below should be public.
|
||||
|
||||
int m_desWidth = 0;
|
||||
int m_desHeight = 0;
|
||||
int m_bufSize;
|
||||
int m_bufSize; // initialized in constructor
|
||||
s64 m_videopts = 0;
|
||||
|
||||
s64 m_firstTimeStamp = 0;
|
||||
|
||||
Reference in New Issue
Block a user