From 7cd5f5ddd749ed178b4d4b496b7045bf349110b8 Mon Sep 17 00:00:00 2001 From: Norbert Schlia Date: Mon, 10 Jun 2024 09:15:39 +0200 Subject: [PATCH] Fixed deprecation: 2014-05-18 - 68c0518 / fd05602 - lavc 55.63.100 / 55.52.0 - avcodec.h Add avcodec_free_context(). From now on it should be used for freeing AVCodecContext. --- NEWS | 4 ++++ README.md | 2 ++ src/ffmpeg_transcoder.cc | 1 - 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index 863fca28..b1ff15fb 100644 --- a/NEWS +++ b/NEWS @@ -4,6 +4,10 @@ Important changes in 2.16 (2024-06-XX): * Bugfix: Closes#1072412: Fix build with FFmpeg 7.0. write_packet() now with const buffer as of Libavformat 61+. +* Fixed deprecation: 2014-05-18 - 68c0518 / fd05602 - lavc 55.63.100 / 55.52.0 + - avcodec.h + Add avcodec_free_context(). From now on it should be used for freeing + AVCodecContext. * Fixed deprecation: 2023-05-15 - 7d1d61cc5f5 - lavc 60 - avcodec.h Depreate AVCodecContext.ticks_per_frame in favor of AVCodecContext.framerate (encoding) and diff --git a/README.md b/README.md index 77e5f4ff..702a16da 100644 --- a/README.md +++ b/README.md @@ -35,6 +35,8 @@ To see what's been done so far, checkout the [windows](https://github.com/nschli **New in 2.16 (2024-06-XX):** - Bugfix: Closes [#160](https://github.com/nschlia/ffmpegfs/issues/160): Fix build with FFmpeg 7.0. [Debian Bug #1072412](https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1072412). write_packet() now with const buffer as of Libavformat 61+. +- Fixed deprecation: 2014-05-18 - 68c0518 / fd05602 - lavc 55.63.100 / 55.52.0 - avcodec.h + Add avcodec_free_context(). From now on it should be used for freeing AVCodecContext. - Fixed deprecation: 2023-05-15 - 7d1d61cc5f5 - lavc 60 - avcodec.h Depreate AVCodecContext.ticks_per_frame in favor of AVCodecContext.framerate (encoding) and diff --git a/src/ffmpeg_transcoder.cc b/src/ffmpeg_transcoder.cc index 6fd3aa2f..71dc3a42 100644 --- a/src/ffmpeg_transcoder.cc +++ b/src/ffmpeg_transcoder.cc @@ -189,7 +189,6 @@ struct av_context_deleter /**< @brief Delete helper struct for std::shared */ void operator ()( T * p) const { - avcodec_close(p); avcodec_free_context(&p); } };