diff --git a/lib/StreamHandlerLibav.cpp b/lib/StreamHandlerLibav.cpp index 4a281c2..72251c9 100644 --- a/lib/StreamHandlerLibav.cpp +++ b/lib/StreamHandlerLibav.cpp @@ -460,6 +460,7 @@ bool StreamHandlerLibav::seek( unsigned long long int iFrameNum ) { return false; } + avcodec_flush_buffers( m_cCodedCtx ); m_uiCurrFrameFileIdx = iFrameNum; return true; }