Skip to content
This repository was archived by the owner on Oct 23, 2024. It is now read-only.

Commit 73ab885

Browse files
authored
Merge branch 'master' into fix-issues
2 parents 9b6d985 + 428b0e5 commit 73ab885

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

source/agent/audio/audioMixer/FfDecoder.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ FfDecoder::~FfDecoder()
8585
}
8686

8787
if (m_decCtx) {
88-
avcodec_close(m_decCtx);
88+
avcodec_free_context(&m_decCtx);
8989
m_decCtx = NULL;
9090
}
9191

source/agent/audio/audioMixer/FfEncoder.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ FfEncoder::~FfEncoder()
6565
}
6666

6767
if (m_audioEnc) {
68-
avcodec_close(m_audioEnc);
68+
avcodec_free_context(&m_audioEnc);
6969
m_audioEnc = NULL;
7070
}
7171

@@ -179,7 +179,7 @@ bool FfEncoder::initEncoder(const FrameFormat format)
179179
}
180180

181181
if (m_audioEnc) {
182-
avcodec_close(m_audioEnc);
182+
avcodec_free_context(&m_audioEnc);
183183
m_audioEnc = NULL;
184184
}
185185

source/core/owt_base/FFmpegFrameDecoder.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ FFmpegFrameDecoder::~FFmpegFrameDecoder()
7171
}
7272

7373
if (m_decCtx) {
74-
avcodec_close(m_decCtx);
74+
avcodec_free_context(&m_decCtx);
7575
m_decCtx = NULL;
7676
}
7777
}

0 commit comments

Comments
 (0)