Bug 445397

Summary: Incompatibility with FFMPEG >=4.2.x: av_find_best_stream now uses a const AVCodec ** parameter (46dac8cf3d) | Invalid conversion from 'const AVCodec*' to 'AVCodec*'
Product: [Unmaintained] kdemultimedia Reporter: EndlessEden <eenov1988>
Component: ffmpegthumbsAssignee: Unassigned bugs mailing-list <unassigned-bugs>
Status: RESOLVED UNMAINTAINED    
Severity: critical CC: eenov1988
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: All   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description EndlessEden 2021-11-12 21:12:19 UTC
SUMMARY

starting with ffmpeg version 4.3, changes to libavformat/libavcodec break building against these versions.

Currently when attempting to build against these versions, it fails with "no matching function for call to 'av_find_best_stream'"

'av_find_best_stream' is specified in <libavformat/avformat.h>; however this header is not included in ffmpegthumbnailer/moviedecoder.cpp 

if the header is added [#include <libavformat/avformat.h>], and rebuilt it results in a new error " error: invalid conversion from ‘AVCodec**’ to ‘const AVCodec**’"

This build error ive seen in other projects (decord): (See: https://github.com/dmlc/decord/pull/160)

ADDITIONAL INFORMATION

build environment:
OS: Linux(Archlinux)
FFmpeg Version: git(master - 104497-g9fd2b39428)
C/CXX Compiler Version: gcc - 11.1.0
QT-Version: 5.15.2+kde+r254 (archlinux packaging)
Comment 1 Christoph Cullmann 2024-09-22 19:04:28 UTC
kdemultimedia is no longer maintained.

If you have issues like you reported with current versions of our applications, please report the issue at the bugtracker of the application.