public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Dominik 'Rathann' Mierzejewski <dominik@greysector.net>
To: git-commits@fedoraproject.org
Subject: [rpms/ffmpeg] f45: fix build with openapv >= 1.1
Date: Mon, 09 Nov 2026 23:50:46 GMT [thread overview]
Message-ID: <179426824646.1.1656432144220321748.rpms-ffmpeg-3514c94246b5@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/ffmpeg
Branch : f45
Commit : 3514c94246b559ee0a8e5c57de20be9ca5e75502
Author : Dominik 'Rathann' Mierzejewski <dominik@greysector.net>
Date : 2026-11-03T12:44:44+01:00
Stats : +46/-1 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/ffmpeg/c/3514c94246b559ee0a8e5c57de20be9ca5e75502?branch=f45
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..d5a6bf5
--- /dev/null
+++ b/ffmpeg-openapv1.1.patch
@@ -0,0 +1,40 @@
+From a7502e5ff39ef53d475b9ee7dd6d4aeb48f047e6 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 22a8ac4890a..32a8cd5f1c9 100644
+--- a/libavcodec/liboapvenc.c
++++ b/libavcodec/liboapvenc.c
+@@ -477,6 +477,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;
+
+@@ -509,7 +512,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 025ac1e..58e11fb 100644
--- a/ffmpeg.spec
+++ b/ffmpeg.spec
@@ -100,7 +100,7 @@ Name: ffmpeg
%global pkg_name %{name}%{?pkg_suffix}
Version: 9.0.2
-Release: 3%{?dist}
+Release: 4%{?dist}
Summary: A complete solution to record, convert and stream audio and video
License: GPL-3.0-or-later
URL: https://ffmpeg.org/
@@ -127,6 +127,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/a7502e5ff39ef53d475b9ee7dd6d4aeb48f047e6.patch#/ffmpeg-openapv1.1.patch
# Add first_dts getter to libavformat for Chromium
# See: https://bugzilla.redhat.com/show_bug.cgi?id=2240127
@@ -982,6 +984,9 @@ rm -rf %{buildroot}%{_datadir}
%changelog
+* Tue Nov 03 2026 Dominik Mierzejewski <dominik@greysector.net> - 9.0.2-4
+- fix build with openapv >= 1.1
+
* Fri Oct 30 2026 Dominik Mierzejewski <dominik@greysector.net> - 9.0.2-3
- enable free Vulkan encoders (patch by Stepan Fomin)
- backport fix for backward seeking with openh264 (resolves rhbz#2547586)
reply other threads:[~2026-11-09 23:50 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=179426824646.1.1656432144220321748.rpms-ffmpeg-3514c94246b5@fedoraproject.org \
--to=dominik@greysector.net \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox