[
https://issues.apache.org/jira/browse/GUACAMOLE-1610?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Toshiki Iwasaki updated GUACAMOLE-1610:
---------------------------------------
Description:
On guacamole-server-1.4.0, build by make command fails.
The following message is the error message.
------------------------------------------------------------------------------------------------
CC guacenc-ffmpeg-compat.o
ffmpeg-compat.c: In function ‘guacenc_avcodec_encode_video’:
ffmpeg-compat.c:140:5: error: ‘{color:#FF0000}av_init_packet’ is deprecated
{color}[-Werror=deprecated-declarations]
140 | av_init_packet(&packet);
| ^~~~~~~~~~~~~~
In file included from /usr/include/x86_64-linux-gnu/libavcodec/bsf.h:30,
from /usr/include/x86_64-linux-gnu/libavcodec/avcodec.h:44,
from video.h:27,
from ffmpeg-compat.h:24,
from ffmpeg-compat.c:21:
------------------------------------------------------------------------------------------------
According to the official FFmpeg documentation,
av_init_packet is deprecated and the use of av_packet_allow is recommended.
> FFmpeg: Replace deprecated API (av_init_packet)
> -----------------------------------------------
>
> Key: GUACAMOLE-1610
> URL: https://issues.apache.org/jira/browse/GUACAMOLE-1610
> Project: Guacamole
> Issue Type: Improvement
> Components: guacamole-server
> Reporter: Toshiki Iwasaki
> Priority: Minor
>
> On guacamole-server-1.4.0, build by make command fails.
> The following message is the error message.
> ------------------------------------------------------------------------------------------------
> CC guacenc-ffmpeg-compat.o
> ffmpeg-compat.c: In function ‘guacenc_avcodec_encode_video’:
> ffmpeg-compat.c:140:5: error: ‘{color:#FF0000}av_init_packet’ is deprecated
> {color}[-Werror=deprecated-declarations]
> 140 | av_init_packet(&packet);
> | ^~~~~~~~~~~~~~
> In file included from /usr/include/x86_64-linux-gnu/libavcodec/bsf.h:30,
> from /usr/include/x86_64-linux-gnu/libavcodec/avcodec.h:44,
> from video.h:27,
> from ffmpeg-compat.h:24,
> from ffmpeg-compat.c:21:
> ------------------------------------------------------------------------------------------------
> According to the official FFmpeg documentation,
> av_init_packet is deprecated and the use of av_packet_allow is recommended.
--
This message was sent by Atlassian Jira
(v8.20.7#820007)