Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 15 Mar 2023 08:45:29 GMT
From:      Nuno Teixeira <eduardo@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 8cc20c36d144 - main - audio/cmus: FFmpeg 6.0 compatibility fix
Message-ID:  <202303150845.32F8jT58068329@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by eduardo:

URL: https://cgit.FreeBSD.org/ports/commit/?id=8cc20c36d14430a87428e2c46238af90b8b50ff8

commit 8cc20c36d14430a87428e2c46238af90b8b50ff8
Author:     Daniel Engberg <diizzy@FreeBSD.org>
AuthorDate: 2023-03-15 08:42:15 +0000
Commit:     Nuno Teixeira <eduardo@FreeBSD.org>
CommitDate: 2023-03-15 08:45:11 +0000

    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
---
 audio/cmus/files/patch-ip_ffmpeg.c | 12 ++++++++++++
 1 file changed, 12 insertions(+)

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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202303150845.32F8jT58068329>