GUACAMOLE-1952: Add compatibility with FFMPEG 7.0
Deprecated avcodec_close was removed in FFMPEG 7.0
This commit is contained in:
parent
3ad3b041f2
commit
246a285e84
@ -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));
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user