public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Than Ngo <than@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/chromium] epel9-next: Workaround for build error due to old ffmpeg 5.x on el9
Date: Fri, 07 Aug 2026 16:08:09 GMT [thread overview]
Message-ID: <178611888916.1.12457010191234654292.rpms-chromium-0df67c8438b4@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/chromium
Branch : epel9-next
Commit : 0df67c8438b480de084b05d9cdfb3626e84ee274
Author : Than Ngo <than@redhat.com>
Date : 2025-09-05T03:14:25+02:00
Stats : +14/-0 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/chromium/c/0df67c8438b480de084b05d9cdfb3626e84ee274?branch=epel9-next
Log:
Workaround for build error due to old ffmpeg 5.x on el9
---
diff --git a/chromium-el9-ffmpeg-AV_CODEC_FLAG_COPY_OPAQUE.patch b/chromium-el9-ffmpeg-AV_CODEC_FLAG_COPY_OPAQUE.patch
new file mode 100644
index 0000000..95b51c3
--- /dev/null
+++ b/chromium-el9-ffmpeg-AV_CODEC_FLAG_COPY_OPAQUE.patch
@@ -0,0 +1,12 @@
+diff -up chromium-140.0.7339.80/media/filters/ffmpeg_video_decoder.cc.me chromium-140.0.7339.80/media/filters/ffmpeg_video_decoder.cc
+--- chromium-140.0.7339.80/media/filters/ffmpeg_video_decoder.cc.me 2025-09-05 02:43:56.666833745 +0200
++++ chromium-140.0.7339.80/media/filters/ffmpeg_video_decoder.cc 2025-09-05 03:09:01.121397898 +0200
+@@ -486,7 +486,7 @@ bool FFmpegVideoDecoder::ConfigureDecode
+
+ codec_context_->opaque = this;
+ codec_context_->get_buffer2 = GetVideoBufferImpl;
+- codec_context_->flags |= AV_CODEC_FLAG_COPY_OPAQUE;
++ //codec_context_->flags |= AV_CODEC_FLAG_COPY_OPAQUE;
+
+ if (decode_nalus_) {
+ codec_context_->flags2 |= AV_CODEC_FLAG2_CHUNKS;
diff --git a/chromium.spec b/chromium.spec
index 6c9577d..dac23dd 100644
--- a/chromium.spec
+++ b/chromium.spec
@@ -280,6 +280,7 @@ Patch92: chromium-138-checkversion-nodejs.patch
# system ffmpeg
# need for old ffmpeg 5.x on epel9
Patch128: chromium-138-el9-ffmpeg-deprecated-apis.patch
+Patch129: chromium-el9-ffmpeg-AV_CODEC_FLAG_COPY_OPAQUE.patch
Patch130: chromium-107-ffmpeg-5.x-duration.patch
# disable the check
Patch131: chromium-107-proprietary-codecs.patch
@@ -965,6 +966,7 @@ Qt6 UI for chromium.
%if ! %{bundleffmpegfree}
%if 0%{?rhel} == 9
%patch -P128 -p1 -b .el9-ffmpeg-deprecated-apis
+%patch -P129 -p1 -b .el9-ffmpeg-AV_CODEC_FLAG_COPY_OPAQUE
%patch -P130 -p1 -b .ffmpeg-5.x-duration
%patch -P133 -p1 -b .el9-ffmpeg-5.1.x
%endif
reply other threads:[~2026-08-07 16:08 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=178611888916.1.12457010191234654292.rpms-chromium-0df67c8438b4@fedoraproject.org \
--to=than@redhat.com \
--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