Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/LAVFilters.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'decoder/LAVAudio/LAVAudio.cpp')
-rw-r--r--decoder/LAVAudio/LAVAudio.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/decoder/LAVAudio/LAVAudio.cpp b/decoder/LAVAudio/LAVAudio.cpp
index 653d83ff..f8de1351 100644
--- a/decoder/LAVAudio/LAVAudio.cpp
+++ b/decoder/LAVAudio/LAVAudio.cpp
@@ -1520,8 +1520,8 @@ HRESULT CLAVAudio::FlushDecoder()
m_bUpdateTimeCache = TRUE;
}
- if (m_pAVCtx && m_pAVCtx->codec) {
- avcodec_flush_buffers (m_pAVCtx);
+ if (m_pAVCtx && avcodec_is_open(m_pAVCtx)) {
+ avcodec_flush_buffers(m_pAVCtx);
}
FlushDTSDecoder();