Bug 459933

Summary: ffmpeg-5 support
Product: [Applications] amarok Reporter: Damir Islamov <damir>
Component: Internet ServicesAssignee: Amarok Bugs <amarok-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: 123kash, joe.yasi, kde, tuomas
Priority: NOR    
Version First Reported In: kf5   
Target Milestone: kf5   
Platform: unspecified   
OS: All   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

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