Skip to content

Commit

Permalink
Add compatibility with FFMPEG 7.0
Browse files Browse the repository at this point in the history
Deprecated avcodec_close was removed in FFMPEG 7.0
  • Loading branch information
eclipseo committed May 5, 2024
1 parent 3ad3b04 commit a978f06
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/guacenc/video.c
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,9 @@ int guacenc_video_free(guacenc_video* video) {

/* Clean up encoding context */
if (video->context != NULL) {
#if LIBAVCODEC_VERSION_INT < AV_VERSION_INT(61, 3, 100)
avcodec_close(video->context);
#endif
avcodec_free_context(&(video->context));
}

Expand Down

0 comments on commit a978f06

Please sign in to comment.