Bug 459933 - ffmpeg-5 support
Summary: ffmpeg-5 support
Status: RESOLVED FIXED
Alias: None
Product: amarok
Classification: Applications
Component: Internet Services (other bugs)
Version First Reported In: kf5
Platform: unspecified All
: NOR normal
Target Milestone: kf5
Assignee: Amarok Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-10-03 06:10 UTC by Damir Islamov
Modified: 2023-03-12 16:11 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Damir Islamov 2022-10-03 06:10:14 UTC
MusicBrainz service in Amarok uses deprecated code that was removed in ffmpeg 5.x.
E.g.:
/<<PKGBUILDDIR>>/src/musicbrainz/MusicDNSAudioDecoder.cpp:203:79: error: invalid conversion from ‘AVCodec**’ to ‘const AVCodec**’ [-fpermissive]
/<<PKGBUILDDIR>>/src/musicbrainz/MusicDNSAudioDecoder.cpp:218:51: error: ‘AVStream’ {aka ‘struct AVStream’} has no member named ‘codec’
/<<PKGBUILDDIR>>/src/musicbrainz/MusicDNSAudioDecoder.cpp:254:30: error: ‘avcodec_decode_audio4’ was not declared in this scope; did you mean ‘avcodec_decode_subtitle2’?
/<<PKGBUILDDIR>>/src/musicbrainz/MusicDNSAudioDecoder.cpp:277:9: error: ‘av_free_packet’ was not declared in this scope; did you mean ‘av_new_packet’?
/<<PKGBUILDDIR>>/src/musicbrainz/MusicDNSAudioDecoder.cpp:283:5: error: ‘av_free_packet’ was not declared in this scope; did you mean ‘av_new_packet’?
Comment 1 Marc Deop 2023-03-06 16:22:09 UTC
Possibly related: https://invent.kde.org/multimedia/amarok/-/merge_requests/45
Comment 2 Tuomas Nurmi 2023-03-12 16:11:42 UTC
Fixed in git head today: https://invent.kde.org/multimedia/amarok/-/merge_requests/52