diff options
Diffstat (limited to 'k9author/k9avidecode.cpp')
-rw-r--r-- | k9author/k9avidecode.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/k9author/k9avidecode.cpp b/k9author/k9avidecode.cpp index 4b34608..e79cb14 100644 --- a/k9author/k9avidecode.cpp +++ b/k9author/k9avidecode.cpp @@ -290,13 +290,6 @@ void k9AviDecode::close() { // Free the YUV frame av_free(m_Frame); - // Close the video file -#if LIBAVFORMAT_VERSION_INT >= AV_VERSION_INT(53, 17, 0) - avformat_close_input(&m_FormatCtx); -#else - av_close_input_file(m_FormatCtx); -#endif - // Close the codec #if LIBAVFORMAT_VERSION_INT >= AV_VERSION_INT(57, 33, 100) avcodec_free_context(&m_CodecCtx); @@ -304,6 +297,13 @@ void k9AviDecode::close() { avcodec_close(m_CodecCtx); #endif + // Close the video file +#if LIBAVFORMAT_VERSION_INT >= AV_VERSION_INT(53, 17, 0) + avformat_close_input(&m_FormatCtx); +#else + av_close_input_file(m_FormatCtx); +#endif + m_opened=false; } } |