GUACAMOLE-1952: Merge add compatibility with FFMPEG 7.0

This commit is contained in:
Virtually Nick 2024-05-24 22:16:41 -04:00 committed by GitHub
commit cc8addf9be
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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