You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@guacamole.apache.org by "Alexander (Jira)" <ji...@apache.org> on 2023/02/20 17:52:00 UTC
[jira] [Commented] (GUACAMOLE-1714) Update guacenc for FFmpeg 5.0 API
[ https://issues.apache.org/jira/browse/GUACAMOLE-1714?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17691267#comment-17691267 ]
Alexander commented on GUACAMOLE-1714:
--------------------------------------
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.
Thats works!!! Thank you!!!
> 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
>
> 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)