[
https://issues.apache.org/jira/browse/GUACAMOLE-1714?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Mike Jumper reopened GUACAMOLE-1714:
------------------------------------
> Update guacenc for FFmpeg 5.0 API
> ---------------------------------
>
> Key: GUACAMOLE-1714
> URL: https://issues.apache.org/jira/browse/GUACAMOLE-1714
> Project: Guacamole
> Issue Type: Task
> Components: guacenc
> Reporter: Mike Jumper
> Assignee: Mike Jumper
> Priority: Minor
> Fix For: 1.6.0
>
>
> Recent versions of FFmpeg have switched to {{const}} arguments and return
> values for several functions, resulting in the following build failure:
> {code:none}
> ...
> CC guacenc-video.o
> video.c: In function 'guacenc_video_alloc':
> video.c:63:22: error: assignment discards 'const' qualifier from pointer
> target type [-Werror=discarded-qualifiers]
> 63 | container_format = container_format_context->oformat;
> | ^
> video.c:66:22: error: initialization discards 'const' qualifier from pointer
> target type [-Werror=discarded-qualifiers]
> 66 | AVCodec* codec = avcodec_find_encoder_by_name(codec_name);
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
> cc1: all warnings being treated as errors
> make[2]: *** [Makefile:1126: guacenc-video.o] Error 1
> {code}
> As suggested by [guacamole-server PR
> #379|https://github.com/apache/guacamole-server/pull/379/files], {{const}}
> should be added as necessary to satisfy the build.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)