public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/ffmpeg] f44: fix build with openapv >= 1.1
@ 2026-11-09 23:51 Dominik 'Rathann' Mierzejewski
0 siblings, 0 replies; only message in thread
From: Dominik 'Rathann' Mierzejewski @ 2026-11-09 23:51 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/ffmpeg
Branch : f44
Commit : 30a2e0d3c7866ac633780e47e4ddaefd6476e142
Author : Dominik 'Rathann' Mierzejewski <dominik@greysector.net>
Date : 2026-11-03T12:54:04+01:00
Stats : +46/-1 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/ffmpeg/c/30a2e0d3c7866ac633780e47e4ddaefd6476e142?branch=f44
Log:
fix build with openapv >= 1.1
---
diff --git a/ffmpeg-openapv1.1.patch b/ffmpeg-openapv1.1.patch
new file mode 100644
index 0000000..900e919
--- /dev/null
+++ b/ffmpeg-openapv1.1.patch
@@ -0,0 +1,40 @@
+From 0880196367273612c3113279438b4b999045d123 Mon Sep 17 00:00:00 2001
+From: Werner Robitza <werner.robitza@gmail.com>
+Date: Thu, 24 Sep 2026 15:02:42 +0200
+Subject: [PATCH] avcodec/liboapvenc: fix build with openapv >= 1.1
+
+openapv 1.1 changed oapvm_create() to take a descriptor argument.
+This was first raised here:
+https://github.com/homebrew-ffmpeg/homebrew-ffmpeg/issues/235
+
+(cherry picked from commit c54710db21c1827dbc3e47658a562525af0fe528)
+---
+ libavcodec/liboapvenc.c | 7 +++++++
+ 1 file changed, 7 insertions(+)
+
+diff --git a/libavcodec/liboapvenc.c b/libavcodec/liboapvenc.c
+index 2b4da37b7de..7159955c1fe 100644
+--- a/libavcodec/liboapvenc.c
++++ b/libavcodec/liboapvenc.c
+@@ -405,6 +405,9 @@ static av_cold int liboapve_init(AVCodecContext *avctx)
+ {
+ ApvEncContext *apv = avctx->priv_data;
+ oapve_cdesc_t *cdsc = &apv->cdsc;
++#if OAPV_VER_APISET >= 1
++ oapvm_cdesc_t mcdsc = { 0 };
++#endif
+ unsigned char *bs_buf;
+ int ret;
+
+@@ -434,7 +437,11 @@ static av_cold int liboapve_init(AVCodecContext *avctx)
+ }
+
+ /* create metadata handler */
++#if OAPV_VER_APISET >= 1
++ apv->mid = oapvm_create(&mcdsc, &ret);
++#else
+ apv->mid = oapvm_create(&ret);
++#endif
+ if (apv->mid == NULL || OAPV_FAILED(ret)) {
+ av_log(avctx, AV_LOG_ERROR, "cannot create OAPV metadata handler\n");
+ return AVERROR_EXTERNAL;
diff --git a/ffmpeg.spec b/ffmpeg.spec
index 992de9a..0fa0a1a 100644
--- a/ffmpeg.spec
+++ b/ffmpeg.spec
@@ -108,7 +108,7 @@ Name: ffmpeg
%global pkg_name %{name}%{?pkg_suffix}
Version: 8.1.3
-Release: 2%{?dist}
+Release: 3%{?dist}
Summary: A complete solution to record, convert and stream audio and video
License: GPL-3.0-or-later
URL: https://ffmpeg.org/
@@ -134,6 +134,8 @@ Patch5: https://code.ffmpeg.org/FFmpeg/FFmpeg/commit/883e8a6336b2651f7be
# fix H.264/HEVC streamcopy timestamps without native decoders
# https://bugzilla.redhat.com/show_bug.cgi?id=2483137
Patch6: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/24968.patch#/ffmpeg-fix-streamcopy-pts.patch
+# fix build with openapv >= 1.1
+Patch7: https://code.ffmpeg.org/FFmpeg/FFmpeg/commit/0880196367273612c3113279438b4b999045d123.patch#/ffmpeg-openapv1.1.patch
# Add upstream commit to address firefox vulkan direct-export rendering issue
Patch11: https://git.ffmpeg.org/gitweb/ffmpeg.git/patch/25e187f8494966377a4b9d077260ce7b501a911c#/ffmpeg-vulkan-direct-export.patch
@@ -990,6 +992,9 @@ rm -rf %{buildroot}%{_datadir}
%changelog
+* Tue Nov 03 2026 Dominik Mierzejewski <dominik@greysector.net> - 8.1.3-3
+- fix build with openapv >= 1.1
+
* Fri Oct 30 2026 Dominik Mierzejewski <dominik@greysector.net> - 8.1.3-2
- enable free Vulkan encoders (patch by Stepan Fomin)
- backport fix for backward seeking with openh264 (resolves rhbz#2547586)
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-09 23:51 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-09 23:51 [rpms/ffmpeg] f44: fix build with openapv >= 1.1 Dominik 'Rathann' Mierzejewski
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox