Mike Jumper created GUACAMOLE-1714:
--------------------------------------

             Summary: 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


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)

Reply via email to