Bug 445397 - Incompatibility with FFMPEG >=4.2.x: av_find_best_stream now uses a const AVCodec ** parameter (46dac8cf3d) | Invalid conversion from 'const AVCodec*' to 'AVCodec*'
Summary: Incompatibility with FFMPEG >=4.2.x: av_find_best_stream now uses a const AVC...
Status: RESOLVED UNMAINTAINED
Alias: None
Product: kdemultimedia
Classification: Unmaintained
Component: ffmpegthumbs (show other bugs)
Version: unspecified
Platform: Compiled Sources All
: NOR critical
Target Milestone: ---
Assignee: Unassigned bugs mailing-list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-11-12 21:12 UTC by EndlessEden
Modified: 2024-09-22 19:04 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.