[k3b] [Bug 509501] New: k3b-25.08.1 fails to build with ffmpeg-8.0

David Korth bugzilla_noreply at kde.org
Sun Sep 14 23:30:14 BST 2025


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: k3b at kde.org
          Reporter: gerbilsoft at gerbilsoft.com
                CC: michalm at jabster.pl, trueg at kde.org
  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 the assignee for the bug.


More information about the k3b mailing list