commit cf43e43db7bee7d7b02b44ade9b8be0ecd9dd54e
Author: leigh123linux <leigh123linux(a)googlemail.com>
Date: Thu Jan 18 11:31:41 2018 +0000
fix build with ffmpeg-3.5
ffmpeg35_buildfix.patch | 12 ++++++++++++
qmmp-plugins-freeworld.spec | 2 ++
2 files changed, 14 insertions(+)
---
diff --git a/ffmpeg35_buildfix.patch b/ffmpeg35_buildfix.patch
new file mode 100644
index 0000000..658944e
--- /dev/null
+++ b/ffmpeg35_buildfix.patch
@@ -0,0 +1,12 @@
+--- a/src/plugins/Input/ffmpeg/decoder_ffmpeg.h
++++ b/src/plugins/Input/ffmpeg/decoder_ffmpeg.h
+@@ -61,7 +61,7 @@
+ AVPacket m_pkt;
+ AVPacket m_temp_pkt;
+ qint64 m_output_at;
+- uchar m_input_buf[INPUT_BUFFER_SIZE + FF_INPUT_BUFFER_PADDING_SIZE];
++ uchar m_input_buf[INPUT_BUFFER_SIZE + AV_INPUT_BUFFER_PADDING_SIZE];
+ int64_t m_seekTime;
+ qint64 m_skipBytes;
+ int m_channels;
+
diff --git a/qmmp-plugins-freeworld.spec b/qmmp-plugins-freeworld.spec
index 3d02e9e..737cdaa 100644
--- a/qmmp-plugins-freeworld.spec
+++ b/qmmp-plugins-freeworld.spec
@@ -8,6 +8,7 @@ License: GPLv2+
URL:
http://qmmp.ylsoftware.com/
Source:
http://qmmp.ylsoftware.com/files/qmmp-%{version}.tar.bz2
Source2: qmmp-filter-provides.sh
+Patch0: ffmpeg35_buildfix.patch
%define _use_internal_dependency_generator 0
%define __find_provides %{_builddir}/%{buildsubdir}/qmmp-filter-provides.sh
@@ -32,6 +33,7 @@ and also the mplayer plugin for video playback.
%prep
%setup -q -n qmmp-%{version}
+%patch0 -p1
cp %{SOURCE2} .
chmod +x qmmp-filter-provides.sh
# adjust includes for the header move in latest ffmpeg