From 246a285e84be8c1823b3d5f1c19b31239ef68d87 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert-Andr=C3=A9=20Mauchin?= Date: Sat, 4 May 2024 14:57:57 +0200 Subject: [PATCH] GUACAMOLE-1952: Add compatibility with FFMPEG 7.0 Deprecated avcodec_close was removed in FFMPEG 7.0 --- src/guacenc/video.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/guacenc/video.c b/src/guacenc/video.c index 1247648628..61e1842e1d 100644 --- a/src/guacenc/video.c +++ b/src/guacenc/video.c @@ -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)); }