From 7f9eb9a288156db8ec80c67de9a2bee945508605 Mon Sep 17 00:00:00 2001 From: Automatic Build System Date: Fri, 5 Jan 2024 22:16:34 +0100 Subject: [PATCH] automatic version update by autodist [release 21.12.2-1mamba;Sun Feb 06 2022] --- ffmpegthumbs-21.12.2-ffmpeg-5.0.patch | 27 +++++++++++++++++++++++++++ ffmpegthumbs.spec | 7 ++++++- 2 files changed, 33 insertions(+), 1 deletion(-) create mode 100644 ffmpegthumbs-21.12.2-ffmpeg-5.0.patch diff --git a/ffmpegthumbs-21.12.2-ffmpeg-5.0.patch b/ffmpegthumbs-21.12.2-ffmpeg-5.0.patch new file mode 100644 index 0000000..3024d71 --- /dev/null +++ b/ffmpegthumbs-21.12.2-ffmpeg-5.0.patch @@ -0,0 +1,27 @@ +From 8c9491775a5af072bfbcf1a2fdfc1f016d1333cf Mon Sep 17 00:00:00 2001 +From: Antonio Rojas +Date: Tue, 25 Jan 2022 12:53:45 +0100 +Subject: [PATCH] Fix build with FFmpeg 5 + +--- + ffmpegthumbnailer/moviedecoder.h | 4 ++++ + 1 file changed, 4 insertions(+) + +diff --git a/ffmpegthumbnailer/moviedecoder.h b/ffmpegthumbnailer/moviedecoder.h +index 502abe9..03eb6dd 100644 +--- a/ffmpegthumbnailer/moviedecoder.h ++++ b/ffmpegthumbnailer/moviedecoder.h +@@ -57,7 +57,11 @@ private: + int m_VideoStream; + AVFormatContext* m_pFormatContext; + AVCodecContext* m_pVideoCodecContext; ++#if LIBAVCODEC_VERSION_MAJOR < 59 + AVCodec* m_pVideoCodec; ++#else ++ const AVCodec* m_pVideoCodec; ++#endif + AVStream* m_pVideoStream; + AVFrame* m_pFrame; + quint8* m_pFrameBuffer; +-- +GitLab diff --git a/ffmpegthumbs.spec b/ffmpegthumbs.spec index 712db47..1720dbf 100644 --- a/ffmpegthumbs.spec +++ b/ffmpegthumbs.spec @@ -1,5 +1,5 @@ Name: ffmpegthumbs -Version: 21.12.1 +Version: 21.12.2 Release: 1mamba Summary: A lightweight video thumbnailer that can be used by file managers Group: Graphical Desktop/Applications/Multimedia @@ -8,6 +8,7 @@ Distribution: openmamba Packager: Silvan Calarco URL: https://kde.org/ Source: http://download.kde.org/stable/release-service/%{version}/src/ffmpegthumbs-%{version}.tar.xz +Patch0: ffmpegthumbs-21.12.2-ffmpeg-5.0.patch License: GPL ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel @@ -42,6 +43,7 @@ FFmpegthumbnailer is a lightweight video thumbnailer that can be used by file ma %prep %setup -q +%patch0 -p1 -b .ffmpeg-5.0 %build %cmake_kde5 -d build @@ -77,6 +79,9 @@ exit 0 %doc LICENSES %changelog +* Sun Feb 06 2022 Automatic Build System 21.12.2-1mamba +- automatic version update by autodist + * Thu Jan 06 2022 Automatic Build System 21.12.1-1mamba - automatic version update by autodist