GUACAMOLE-1952: Add compatibility with FFMPEG 7.0

Deprecated avcodec_close was removed in FFMPEG 7.0
This commit is contained in:
Robert-André Mauchin 2024-05-04 14:57:57 +02:00
parent 3ad3b041f2
commit 246a285e84

View File

@ -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));
}