Skip to content

Commit

Permalink
Fixed deprecation: 2014-05-18 - 68c0518 / fd05602 - lavc 55.63.100 / …
Browse files Browse the repository at this point in the history
…55.52.0 - avcodec.h

Add avcodec_free_context(). From now on it should be used for freeing AVCodecContext.
  • Loading branch information
nschlia committed Jun 10, 2024
1 parent 455e4c1 commit 7cd5f5d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions NEWS
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion src/ffmpeg_transcoder.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
};
Expand Down

0 comments on commit 7cd5f5d

Please sign in to comment.