commit 2caf7f037a89bf396fa080a162c5ec43ce117770
Author: Richard Shaw <hobbes1069(a)gmail.com>
Date: Thu Mar 31 07:11:00 2022 -0500
Add patch for ffmpeg 5.0.
pianobar-ffmpeg5.patch | 12 ++++++++++++
pianobar.spec | 2 ++
2 files changed, 14 insertions(+)
---
diff --git a/pianobar-ffmpeg5.patch b/pianobar-ffmpeg5.patch
new file mode 100644
index 0000000..9ff5b91
--- /dev/null
+++ b/pianobar-ffmpeg5.patch
@@ -0,0 +1,12 @@
+diff --git a/src/player.h b/src/player.h
+index 3179785..2e44aed 100644
+--- a/src/player.h
++++ b/src/player.h
+@@ -34,6 +34,7 @@ THE SOFTWARE.
+ #include <ao/ao.h>
+ #include <libavformat/avformat.h>
+ #include <libavfilter/avfilter.h>
++#include <libavcodec/avcodec.h>
+ #include <piano.h>
+
+ #include "settings.h"
diff --git a/pianobar.spec b/pianobar.spec
index c452795..ad73928 100644
--- a/pianobar.spec
+++ b/pianobar.spec
@@ -7,6 +7,8 @@ License: MIT
URL:
https://6xq.net/pianobar/
Source0: %url/%{name}-%{version}.tar.bz2
+Patch0: pianobar-ffmpeg5.patch
+
BuildRequires: gcc
BuildRequires: gnutls-devel
BuildRequires: libao-devel