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] f45: Fix FTBFS with system ffmpeg
Date: Wed, 21 Oct 2026 16:26:47 GMT	[thread overview]
Message-ID: <179260000717.1.4924272894824309603.rpms-chromium-120484fdd873@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/chromium
Branch : f45
Commit : 120484fdd8737bbbc28d194489253bf720d43e2d
Author : Than Ngo <than@redhat.com>
Date   : 2026-10-21T18:24:06+02:00
Stats  : +41/-2 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/chromium/c/120484fdd8737bbbc28d194489253bf720d43e2d?branch=f45

Log:
Fix FTBFS with system ffmpeg

---
diff --git a/chromium-156-system-ffmpeg-api.patch b/chromium-156-system-ffmpeg-api.patch
new file mode 100644
index 0000000..7e79de9
--- /dev/null
+++ b/chromium-156-system-ffmpeg-api.patch
@@ -0,0 +1,36 @@
+
+FTBFS Workaround with system ffmpeg due to newer API
+
+diff -up chromium-156.0.8078.47/media/filters/ffmpeg_demuxer.cc.me chromium-156.0.8078.47/media/filters/ffmpeg_demuxer.cc
+--- chromium-156.0.8078.47/media/filters/ffmpeg_demuxer.cc.me	2026-10-21 16:43:53.188590497 +0200
++++ chromium-156.0.8078.47/media/filters/ffmpeg_demuxer.cc	2026-10-21 17:48:59.810845527 +0200
+@@ -1307,6 +1307,7 @@ FFmpegDemuxer::MetadataTrackMap FFmpegDe
+ 
+   for (const AVStreamGroup* stream_group :
+        AVFormatContextStreamGroupsToSpan(format_context)) {
++#if defined(AV_STREAM_GROUP_PARAMS_TREF) && defined(AV_CODEC_ID_ITUT_T35)
+     if (stream_group->type != AV_STREAM_GROUP_PARAMS_TREF) {
+       continue;
+     }
+@@ -1332,6 +1333,7 @@ FFmpegDemuxer::MetadataTrackMap FFmpegDe
+       }
+       entry.render_stream_indices.insert(stream->index);
+     }
++#endif
+   }
+   return result;
+ }
+@@ -1450,11 +1452,13 @@ void FFmpegDemuxer::OnFindStreamInfoDone
+     } else if (codec_type == AVMEDIA_TYPE_SUBTITLE) {
+       stream->discard = AVDISCARD_ALL;
+       continue;
++#if defined(AV_CODEC_ID_ITUT_T35)
+     } else if (codec_id == AV_CODEC_ID_ITUT_T35) {
+       if (!metadata_tracks_.contains(stream->index)) {
+         stream->discard = AVDISCARD_ALL;
+       }
+       continue;
++#endif
+     } else {
+       stream->discard = AVDISCARD_ALL;
+       continue;

diff --git a/chromium.spec b/chromium.spec
index ec318a4..69bb93c 100644
--- a/chromium.spec
+++ b/chromium.spec
@@ -367,9 +367,11 @@ Patch136: chromium-133-workaround-system-ffmpeg-whitelist.patch
 Patch137: chromium-147-system-ffmpeg.patch
 # Workaround for missing AVDynamicHDRSmpte2094App5 in system ffmpeg
 Patch138: chromium-150-ffmpeg-AVDynamicHDRSmpte2094App5.patch
+# Workaround for missing AV_CODEC_ID_ITUT_T35|AV_STREAM_GROUP_PARAMS_TREF
+Patch139: chromium-156-system-ffmpeg-api.patch
 
 # Fix FTBFS with python-3.9 on el9
-Patch139: chromium-153-el9-python-3.9-build-error.patch
+Patch140: chromium-153-el9-python-3.9-build-error.patch
 
 # file conflict with old kernel on el8/el9
 Patch141: chromium-118-dma_buf_export_sync_file-conflict.patch
@@ -1155,11 +1157,12 @@ Qt6 UI for chromium.
 %patch -P136 -p1 -b .workaround-system-ffmpeg-whitelist
 %patch -P137 -p1 -b .system-ffmpeg
 %patch -P138 -p1 -b .workaround-system-ffmpeg-AVDynamicHDRSmpte2094App5
+%patch -P139 -p1 -b .workaround-system-ffmpeg-api
 %endif
 
 %if 0%{?rhel} == 8 || 0%{?rhel} == 9
+%patch -P140 -p1 -b .el9-python-3.9-build-error.patch
 %patch -P141 -p1 -b .dma_buf_export_sync_file-conflict
-%patch -P139 -p1 -b .el9-python-3.9-build-error.patch
 %endif
 
 %if (0%{?rhel} && 0%{?rhel} < 10) || (0%{?rhel} == 10 && 0%{?rhel_minor_version} < 2)

                 reply	other threads:[~2026-10-21 16:26 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=179260000717.1.4924272894824309603.rpms-chromium-120484fdd873@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