diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-09-24 12:55:44 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-09-25 12:12:03 +0900 |
commit | 73b7471badb767c8072c07056a999f7b6e9b1b6b (patch) | |
tree | 147e2fdab5812016285c91c3ba8c8f2e8fd780c9 /k9author/k9avidecode.cpp | |
parent | 6fa85b8183dec658642c99a3276c857d1f53b944 (diff) | |
download | k9copy-r14.1.x.tar.gz k9copy-r14.1.x.zip |
Fix FTBFS with ffmeg 8.0. This resolves issue #37r14.1.x
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 75a4ed1d3e9193d6312fe205f57c38bd21764c96)
Diffstat (limited to 'k9author/k9avidecode.cpp')
-rw-r--r-- | k9author/k9avidecode.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/k9author/k9avidecode.cpp b/k9author/k9avidecode.cpp index c6e1217..4b34608 100644 --- a/k9author/k9avidecode.cpp +++ b/k9author/k9avidecode.cpp @@ -290,9 +290,6 @@ void k9AviDecode::close() { // Free the YUV frame av_free(m_Frame); - // Close the codec - avcodec_close(m_CodecCtx); - // Close the video file #if LIBAVFORMAT_VERSION_INT >= AV_VERSION_INT(53, 17, 0) avformat_close_input(&m_FormatCtx); @@ -300,8 +297,11 @@ void k9AviDecode::close() { 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); +#else + avcodec_close(m_CodecCtx); #endif m_opened=false; |