commit 553701589098925a2bbb0943ec0d184f78c3b0cd
Author: leigh123linux <leigh123linux(a)googlemail.com>
Date: Thu Jan 18 14:14:54 2018 +0000
fix build with ffmpeg-3.5
cmus.spec | 2 +-
ffmpeg35_buildfix.patch | 14 ++++++++++++++
2 files changed, 15 insertions(+), 1 deletion(-)
---
diff --git a/cmus.spec b/cmus.spec
index 835bd88..98bfcb0 100644
--- a/cmus.spec
+++ b/cmus.spec
@@ -6,7 +6,7 @@ Group: Applications/Multimedia
License: GPLv2+
URL:
https://cmus.github.io/
Source0:
https://github.com/cmus/%{name}/archive/v%{version}-rc0/%{name}-%{version...
-
+Patch0: ffmpeg35_buildfix.patch
BuildRequires: alsa-lib-devel
BuildRequires: faad2-devel
diff --git a/ffmpeg35_buildfix.patch b/ffmpeg35_buildfix.patch
new file mode 100644
index 0000000..b21f272
--- /dev/null
+++ b/ffmpeg35_buildfix.patch
@@ -0,0 +1,14 @@
+--- a/ip/ffmpeg.c
++++ b/ip/ffmpeg.c
+@@ -252,8 +252,8 @@
+ break;
+ }
+
+- if (codec->capabilities & CODEC_CAP_TRUNCATED)
+- cc->flags |= CODEC_FLAG_TRUNCATED;
++ if (codec->capabilities & AV_CODEC_CAP_TRUNCATED)
++ cc->flags |= AV_CODEC_FLAG_TRUNCATED;
+
+ #if (LIBAVCODEC_VERSION_INT < ((53<<16)+(8<<8)+0))
+ if (avcodec_open(cc, codec) < 0) {
+