https://bugs.kde.org/show_bug.cgi?id=509501
Bug ID: 509501
Summary: k3b-25.08.1 fails to build with ffmpeg-8.0
Classification: Applications
Product: k3b
Version First 25.08.1
Reported In:
Platform: Other
OS: Linux
Status: REPORTED
Severity: normal
Priority: NOR
Component: Plugins
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected]
Target Milestone: ---
SUMMARY
K3b 25.08.1 fails to build with ffmpeg-8.0 due to its use of avcodec_close() in
k3bffmpegwrapper.cpp. This function was deprecated in a previous version, and
completely removed in ffmpeg-8.0. The recommended fix is to simply remove it;
avcodec_free_context(), which is used right after avcodec_close() in
k3bffmpegwrapper.cpp, automatically handles closing the codec.
STEPS TO REPRODUCE
1. Install ffmpeg-8.0.
2. Attempt to build k3b-25.08.1.
OBSERVED RESULT
k3b-25.08.1 fails to build due to avcodec_close() not being declared in the
ffmpeg headers.
EXPECTED RESULT
k3b-25.08.1 builds.
SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Linux 6.16.7
KDE Plasma Version: 6.4.5
KDE Frameworks Version: 6.18.0
Qt Version: 6.9.2
ADDITIONAL INFORMATION
I'm not sure which version of ffmpeg avcodec_close() was deprecated in, but
presumably it was actually needed before, so a preprocessor macro should be
used to check for ffmpeg-8.0 and only use avcodec_close() if it's an older
version.
--
You are receiving this mail because:
You are watching all bug changes.