You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@guacamole.apache.org by "Michael Jumper (JIRA)" <ji...@apache.org> on 2018/11/13 00:36:00 UTC
[jira] [Commented] (GUACAMOLE-638) Compile error:
'avcodec_register_all' is deprecated
[ https://issues.apache.org/jira/browse/GUACAMOLE-638?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16684559#comment-16684559 ]
Michael Jumper commented on GUACAMOLE-638:
------------------------------------------
According to the FFmpeg API changelog, {{avcodec_register_all()}} has been deprecated since specifically 58.10.100:
https://github.com/FFmpeg/FFmpeg/blob/23f589e073406f8c9d80092d3ff9ef8c22f27e63/doc/APIchanges#L108
> Compile error: 'avcodec_register_all' is deprecated
> ---------------------------------------------------
>
> Key: GUACAMOLE-638
> URL: https://issues.apache.org/jira/browse/GUACAMOLE-638
> Project: Guacamole
> Issue Type: Bug
> Components: guacamole-server
> Affects Versions: 1.0.0
> Environment: Fedora 28
> Reporter: T Gale
> Assignee: Michael Jumper
> Priority: Minor
>
> Compile error with Fedora 28:
> {code:none}
> guacenc.c: In function 'main':
> guacenc.c:79:5: error: 'avcodec_register_all' is deprecated [-Werror=deprecated-declarations]
> avcodec_register_all();
> ^~~~~~~~~~~~~~~~~~~~
> In file included from guacenc.c:27:
> /usr/include/ffmpeg/libavcodec/avcodec.h:4086:6: note: declared here
> void avcodec_register_all(void);
> ^~~~~~~~~~~~~~~~~~~~
> cc1: all warnings being treated as errors
> {code}
> Here's a patch:
> {code:none}
> --- guacenc.c 2018-09-28 02:25:30.000000000 +0100
> +++ guacenc.c 2018-09-28 15:30:26.849265324 +0100
> @@ -76,7 +76,9 @@
> "version " VERSION);
>
> /* Prepare libavcodec */
> +#if LIBAVCODEC_VERSION_INT < AV_VERSION_INT(58, 9, 100)
> avcodec_register_all();
> +#endif
>
> /* Track number of overall failures */
> int total_files = argc - optind;
> {code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)