git: 4a0545221d33 - main - multimedia/x264: incorporate an upstream patch to support newer ffmpeg
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 19 Dec 2025 16:28:31 UTC
The branch main has been updated by bapt:
URL: https://cgit.FreeBSD.org/ports/commit/?id=4a0545221d3342ff477cebc4920fe5934aea730c
commit 4a0545221d3342ff477cebc4920fe5934aea730c
Author: Baptiste Daroussin <bapt@FreeBSD.org>
AuthorDate: 2025-12-19 16:28:10 +0000
Commit: Baptiste Daroussin <bapt@FreeBSD.org>
CommitDate: 2025-12-19 16:28:10 +0000
multimedia/x264: incorporate an upstream patch to support newer ffmpeg
---
multimedia/x264/Makefile | 2 ++
.../32c3b801191522961102d4bea292cdb61068d0dd.patch | 38 ++++++++++++++++++++++
2 files changed, 40 insertions(+)
diff --git a/multimedia/x264/Makefile b/multimedia/x264/Makefile
index 97a5a4643de4..b9dd3cdb4c03 100644
--- a/multimedia/x264/Makefile
+++ b/multimedia/x264/Makefile
@@ -26,6 +26,8 @@ MAINTAINER= bofh@FreeBSD.org
COMMENT?= H.264/MPEG-4 AVC Video Encoding (Front End CLI)
WWW= https://www.videolan.org/x264.html
+EXTRA_PATCHES= ${FILESDIR}/32c3b801191522961102d4bea292cdb61068d0dd.patch:-p1
+
LICENSE= GPLv2
LICENSE_NAME_PGO= PGO
LICENSE_FILE= ${WRKSRC}/COPYING
diff --git a/multimedia/x264/files/32c3b801191522961102d4bea292cdb61068d0dd.patch b/multimedia/x264/files/32c3b801191522961102d4bea292cdb61068d0dd.patch
new file mode 100644
index 000000000000..31ea7fc63bd6
--- /dev/null
+++ b/multimedia/x264/files/32c3b801191522961102d4bea292cdb61068d0dd.patch
@@ -0,0 +1,38 @@
+From 32c3b801191522961102d4bea292cdb61068d0dd Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Martin=20Storsj=C3=B6?= <martin@martin.st>
+Date: Fri, 4 Apr 2025 16:59:34 +0300
+Subject: [PATCH] lavf: Update the code to work with the latest libavutil API
+
+---
+ input/lavf.c | 6 ++++++
+ 1 file changed, 6 insertions(+)
+
+diff --git a/input/lavf.c b/input/lavf.c
+index 90f4cec5..e2489963 100644
+--- a/input/lavf.c
++++ b/input/lavf.c
+@@ -33,6 +33,7 @@
+ #include <libavutil/error.h>
+ #include <libavutil/mem.h>
+ #include <libavutil/pixdesc.h>
++#include <libavutil/version.h>
+
+ #define FAIL_IF_ERROR( cond, ... ) FAIL_IF_ERR( cond, "lavf", __VA_ARGS__ )
+
+@@ -141,8 +142,13 @@ static int read_frame_internal( cli_pic_t *p_pic, lavf_hnd_t *h, int i_frame, vi
+ if( info )
+ {
+ info->fullrange = is_fullrange;
++#if LIBAVUTIL_VERSION_MAJOR < 60
+ info->interlaced = h->frame->interlaced_frame;
+ info->tff = h->frame->top_field_first;
++#else
++ info->interlaced = !!(h->frame->flags & AV_FRAME_FLAG_INTERLACED);
++ info->tff = !!(h->frame->flags & AV_FRAME_FLAG_TOP_FIELD_FIRST);
++#endif
+ }
+
+ if( h->vfr_input )
+--
+GitLab
+