commit cab848a8424129d4e611efc6177887ed5382ef8d
Author: Leigh Scott <leigh123linux(a)gmail.com>
Date: Wed Feb 9 11:39:57 2022 +0000
Fix for gcc-12
ffmpegthumbnailer.spec | 1 +
gcc12_fix.patch | 10 ++++++++++
2 files changed, 11 insertions(+)
---
diff --git a/ffmpegthumbnailer.spec b/ffmpegthumbnailer.spec
index 7a552a0..51112a4 100644
--- a/ffmpegthumbnailer.spec
+++ b/ffmpegthumbnailer.spec
@@ -11,6 +11,7 @@ License: GPLv2+
URL:
https://github.com/dirkvdb/%{name}
Source0: %{url}/archive/%{commit}/%{name}-%{commit}.tar.gz
Patch0: add_audio_cover.patch
+Patch1: gcc12_fix.patch
BuildRequires: ffmpeg-devel
BuildRequires: libpng-devel
diff --git a/gcc12_fix.patch b/gcc12_fix.patch
new file mode 100644
index 0000000..b5c737c
--- /dev/null
+++ b/gcc12_fix.patch
@@ -0,0 +1,10 @@
+--- b/libffmpegthumbnailer/videothumbnailer.cpp
++++ a/libffmpegthumbnailer/videothumbnailer.cpp
+@@ -32,6 +32,7 @@
+ #include <stdexcept>
+ #include <cassert>
+ #include <cerrno>
++#include <cstring>
+ #include <memory>
+ #include <regex>
+ #include <algorithm>