summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorleigh123linux <leigh123linux@googlemail.com>2018-01-18 14:14:54 +0000
committerleigh123linux <leigh123linux@googlemail.com>2018-01-18 14:14:54 +0000
commit553701589098925a2bbb0943ec0d184f78c3b0cd (patch)
tree24ffc608439dbbef33046101e9a06d42aebab03e
parenta099f80e3f9d5a0e41a9c762eb55d2745a0ca616 (diff)
downloadcmus-553701589098925a2bbb0943ec0d184f78c3b0cd.zip
cmus-553701589098925a2bbb0943ec0d184f78c3b0cd.tar.gz
cmus-553701589098925a2bbb0943ec0d184f78c3b0cd.tar.xz
fix build with ffmpeg-3.5
-rw-r--r--cmus.spec2
-rw-r--r--ffmpeg35_buildfix.patch14
2 files changed, 15 insertions, 1 deletions
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}-rc0.tar.gz
-
+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) {
+