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