aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Engberg <diizzy@FreeBSD.org>2023-03-15 08:42:15 +0000
committerNuno Teixeira <eduardo@FreeBSD.org>2023-03-15 08:45:11 +0000
commit8cc20c36d14430a87428e2c46238af90b8b50ff8 (patch)
treef12e43c4d73949cc91eb2000edd22978b4d49f8b
parent7f0d57bd050bf1ff49462a2c300e40e4afffc5ba (diff)
downloadports-8cc20c36d14430a87428e2c46238af90b8b50ff8.tar.gz
ports-8cc20c36d14430a87428e2c46238af90b8b50ff8.zip
audio/cmus: FFmpeg 6.0 compatibility fix
Patch required to build with FFmpeg 6.0 Reference: https://git.alpinelinux.org/aports/tree/community/cmus/ffmpeg6.patch PR: 270179
-rw-r--r--audio/cmus/files/patch-ip_ffmpeg.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/audio/cmus/files/patch-ip_ffmpeg.c b/audio/cmus/files/patch-ip_ffmpeg.c
new file mode 100644
index 000000000000..c86ccfa3efe5
--- /dev/null
+++ b/audio/cmus/files/patch-ip_ffmpeg.c
@@ -0,0 +1,12 @@
+--- ip/ffmpeg.c.orig 2022-07-05 20:20:28 UTC
++++ ip/ffmpeg.c
+@@ -202,9 +202,6 @@ static int ffmpeg_open(struct input_plugin_data *ip_da
+ 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;