Bug#1004825: hedgewars: FTBFS with ffmpeg 5.0

Gianfranco Costamagna locutusofborg at debian.org
Thu Feb 3 15:32:02 GMT 2022


Hello,

I probably crafted a patch, but my ffmpeg knowledge is zero, so help is appreciated

Attached the patch.

G.


On Tue, 1 Feb 2022 23:38:47 +0100 Sebastian Ramacher <sramacher at debian.org> wrote:
> Source: hedgewars
> Version: 1.0.0-14
> Severity: important
> X-Debbugs-Cc: sramacher at debian.org
> Tags: sid bookworm ftbfs
> Usertags: ffmpeg5.0
> 
> hedgewars FTBFS with ffmpeg 5.0 in experimental:
> 
> [  6%] Generating hedgewars_it.qm
> cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/share/hedgewars/Data/Locale && /usr/lib/qt5/bin/lrelease /<<PKGBUILDDIR>>/share/hedgewars/Data/Locale/hedgewars_it.ts -qm /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/share/hedgewars/Data/Locale/hedgewars_it.qm
> Updating '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/share/hedgewars/Data/Locale/hedgewars_gl.qm'...
>     Generated 223 translation(s) (177 finished and 46 unfinished)
>     Ignored 910 untranslated source text(s)
> Updating '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/share/hedgewars/Data/Locale/hedgewars_hu.qm'...
>     Generated 1181 translation(s) (1181 finished and 0 unfinished)
> Updating '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/share/hedgewars/Data/Locale/hedgewars_it.qm'...
>     Generated 1133 translation(s) (1133 finished and 0 unfinished)
> /<<PKGBUILDDIR>>/hedgewars/avwrapper/avwrapper.c: In function ‘AddAudioStream’:
> /<<PKGBUILDDIR>>/hedgewars/avwrapper/avwrapper.c:174:26: error: ‘AVStream’ has no member named ‘codec’
>   174 |     g_pAudio = g_pAStream->codec;
>       |                          ^~
> /<<PKGBUILDDIR>>/hedgewars/avwrapper/avwrapper.c:176:5: warning: implicit declaration of function ‘avcodec_get_context_defaults3’ [-Wimplicit-function-declaration]
>   176 |     avcodec_get_context_defaults3(g_pAudio, g_pACodec);
>       |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> /<<PKGBUILDDIR>>/hedgewars/avwrapper/avwrapper.c: In function ‘WriteAudioFrame’:
> /<<PKGBUILDDIR>>/hedgewars/avwrapper/avwrapper.c:230:5: warning: ‘av_init_packet’ is deprecated [-Wdeprecated-declarations]
>   230 |     av_init_packet(&Packet);
>       |     ^~~~~~~~~~~~~~
> In file included from /usr/include/x86_64-linux-gnu/libavcodec/avcodec.h:45,
>                  from /<<PKGBUILDDIR>>/hedgewars/avwrapper/avwrapper.c:25:
> /usr/include/x86_64-linux-gnu/libavcodec/packet.h:506:6: note: declared here
>   506 | void av_init_packet(AVPacket *pkt);
>       |      ^~~~~~~~~~~~~~
> /<<PKGBUILDDIR>>/hedgewars/avwrapper/avwrapper.c:247:9: warning: implicit declaration of function ‘avcodec_encode_audio2’; did you mean ‘avcodec_encode_subtitle’? [-Wimplicit-function-declaration]
>   247 |     if (avcodec_encode_audio2(g_pAudio, &Packet, pFrame, &got_packet) != 0)
>       |         ^~~~~~~~~~~~~~~~~~~~~
>       |         avcodec_encode_subtitle
> /<<PKGBUILDDIR>>/hedgewars/avwrapper/avwrapper.c: In function ‘AddVideoStream’:
> /<<PKGBUILDDIR>>/hedgewars/avwrapper/avwrapper.c:282:26: error: ‘AVStream’ has no member named ‘codec’
>   282 |     g_pVideo = g_pVStream->codec;
>       |                          ^~
> /<<PKGBUILDDIR>>/hedgewars/avwrapper/avwrapper.c: In function ‘WriteFrame’:
> /<<PKGBUILDDIR>>/hedgewars/avwrapper/avwrapper.c:384:5: warning: ‘av_init_packet’ is deprecated [-Wdeprecated-declarations]
>   384 |     av_init_packet(&Packet);
>       |     ^~~~~~~~~~~~~~
> In file included from /usr/include/x86_64-linux-gnu/libavcodec/avcodec.h:45,
>                  from /<<PKGBUILDDIR>>/hedgewars/avwrapper/avwrapper.c:25:
> /usr/include/x86_64-linux-gnu/libavcodec/packet.h:506:6: note: declared here
>   506 | void av_init_packet(AVPacket *pkt);
>       |      ^~~~~~~~~~~~~~
> /<<PKGBUILDDIR>>/hedgewars/avwrapper/avwrapper.c:408:13: warning: implicit declaration of function ‘avcodec_encode_video2’; did you mean ‘avcodec_encode_subtitle’? [-Wimplicit-function-declaration]
>   408 |         if (avcodec_encode_video2(g_pVideo, &Packet, pFrame, &got_packet) < 0)
>       |             ^~~~~~~~~~~~~~~~~~~~~
>       |             avcodec_encode_subtitle
> /<<PKGBUILDDIR>>/hedgewars/avwrapper/avwrapper.c: In function ‘AVWrapper_Init’:
> /<<PKGBUILDDIR>>/hedgewars/avwrapper/avwrapper.c:503:5: warning: implicit declaration of function ‘av_register_all’ [-Wimplicit-function-declaration]
>   503 |     av_register_all();
>       |     ^~~~~~~~~~~~~~~
> /<<PKGBUILDDIR>>/hedgewars/avwrapper/avwrapper.c:506:15: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]


More information about the Pkg-games-devel mailing list