Friday, April 28, 2023

UPDATE: cmus

Fix building with newer FFmpeg.


Index: Makefile
===================================================================
RCS file: /home/cvs/ports/audio/cmus/Makefile,v
retrieving revision 1.29
diff -u -p -u -p -r1.29 Makefile
--- Makefile 9 Aug 2022 15:08:44 -0000 1.29
+++ Makefile 28 Apr 2023 20:34:45 -0000
@@ -6,7 +6,7 @@ V= 2.10.0
GH_ACCOUNT= cmus
GH_PROJECT= cmus
GH_TAGNAME= v${V}
-
+REVISION= 0
CATEGORIES= audio
HOMEPAGE= https://cmus.github.io/

Index: patches/patch-ip_ffmpeg_c
===================================================================
RCS file: patches/patch-ip_ffmpeg_c
diff -N patches/patch-ip_ffmpeg_c
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ patches/patch-ip_ffmpeg_c 28 Apr 2023 20:34:24 -0000
@@ -0,0 +1,16 @@
+Fix build with newer FFmpeg.
+
+Index: ip/ffmpeg.c
+--- ip/ffmpeg.c.orig
++++ ip/ffmpeg.c
+@@ -202,8 +202,10 @@ static int ffmpeg_open(struct input_plugin_data *ip_da
+ break;
+ }
+
++#if LIBAVCODEC_VERSION_INT < AV_VERSION_INT(59, 18, 100)
+ if (codec->capabilities & AV_CODEC_CAP_TRUNCATED)
+ cc->flags |= AV_CODEC_FLAG_TRUNCATED;
++

No comments:

Post a Comment