diff options
| author | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-09-26 09:54:56 +0900 |
|---|---|---|
| committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-09-27 10:10:49 +0900 |
| commit | 04a9cc336ac51e4a19a4a47dd5f5e8668b396f9b (patch) | |
| tree | 7847e7e4454fbb43273c1e5ef61fe6e0be7cb32c | |
| parent | 73b7471badb767c8072c07056a999f7b6e9b1b6b (diff) | |
| download | k9copy-r14.1.5.tar.gz k9copy-r14.1.5.zip | |
Fix location of call to avcodec_close for old version of libavcodecr14.1.5
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 1f8ddde027f9da9dc32a7e33bd50c970c562946b)
| -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; } } |
