commit 816da42632ccfc164ee5ca1fe0eedd174b8cabd5
Author: Leigh Scott <leigh123linux(a)gmail.com>
Date: Tue Feb 28 21:53:29 2023 +0000
fix
cmus.spec | 1 +
ffmpeg6.patch | 15 +++++++++++++++
2 files changed, 16 insertions(+)
---
diff --git a/cmus.spec b/cmus.spec
index 5110764..4022011 100644
--- a/cmus.spec
+++ b/cmus.spec
@@ -5,6 +5,7 @@ Summary: Ncurses-Based Music Player
License: GPLv2+
URL:
https://cmus.github.io/
Source0:
https://github.com/cmus/%{name}/archive/v%{version}/%{name}-%{version}.ta...
+Patch0: ffmpeg6.patch
BuildRequires: alsa-lib-devel
BuildRequires: faad2-devel
diff --git a/ffmpeg6.patch b/ffmpeg6.patch
new file mode 100644
index 0000000..f5dac49
--- /dev/null
+++ b/ffmpeg6.patch
@@ -0,0 +1,15 @@
+https://github.com/FFmpeg/FFmpeg/commit/dd846bc4a9163f875cc2c4e99325c1a7b4ab8e7d
+diff --git a/ip/ffmpeg.c b/ip/ffmpeg.c
+index 09ed3fc..ea0b26f 100644
+--- a/ip/ffmpeg.c
++++ b/ip/ffmpeg.c
+@@ -202,9 +202,6 @@ static int ffmpeg_open(struct input_plugin_data *ip_data)
+ break;
+ }
+
+- if (codec->capabilities & AV_CODEC_CAP_TRUNCATED)
+- cc->flags |= AV_CODEC_FLAG_TRUNCATED;
+-
+ if (avcodec_open2(cc, codec, NULL) < 0) {
+ d_print("could not open codec: %d, %s\n", cc->codec_id,
avcodec_get_name(cc->codec_id));
+ err = -IP_ERROR_UNSUPPORTED_FILE_TYPE;