public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/k3b] epel9-next: Apply patch for ffmpeg7
@ 2026-07-20 19:53 Troy Dawson
  0 siblings, 0 replies; only message in thread
From: Troy Dawson @ 2026-07-20 19:53 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/k3b
Branch : epel9-next
Commit : 9b0af1cd8ad91e617296ad5d0a4a5839d1fac3a5
Author : Troy Dawson <tdawson@redhat.com>
Date   : 2026-07-20T12:52:56-07:00
Stats  : +40/-1 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/k3b/c/9b0af1cd8ad91e617296ad5d0a4a5839d1fac3a5?branch=epel9-next

Log:
Apply patch for ffmpeg7

---
diff --git a/k3b-23.08-ffmpeg7-changes.patch b/k3b-23.08-ffmpeg7-changes.patch
new file mode 100644
index 0000000..2b92b22
--- /dev/null
+++ b/k3b-23.08-ffmpeg7-changes.patch
@@ -0,0 +1,34 @@
+From fad077ba1d85dfb43775067294cb6625372051eb Mon Sep 17 00:00:00 2001
+From: Troy Dawson <tdawson@redhat.com>
+Date: Fri, 17 Jul 2026 13:19:34 -0700
+Subject: [PATCH] ffmpeg7 patch
+
+---
+ plugins/decoder/ffmpeg/k3bffmpegwrapper.cpp | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/plugins/decoder/ffmpeg/k3bffmpegwrapper.cpp b/plugins/decoder/ffmpeg/k3bffmpegwrapper.cpp
+index c407a55..6dd18db 100644
+--- a/plugins/decoder/ffmpeg/k3bffmpegwrapper.cpp
++++ b/plugins/decoder/ffmpeg/k3bffmpegwrapper.cpp
+@@ -140,7 +140,7 @@ bool K3bFFMpegFile::open()
+ 
+     d->sampleFormat = d->codecContext->sample_fmt;
+     d->isSpacious = ::av_sample_fmt_is_planar(d->sampleFormat) &&
+-        d->codecContext->channels > 1;
++        d->codecContext->ch_layout.nb_channels > 1;
+     d->packet = ::av_packet_alloc();
+ 
+     // dump some debugging info
+@@ -185,7 +185,7 @@ int K3bFFMpegFile::sampleRate() const
+ 
+ int K3bFFMpegFile::channels() const
+ {
+-    return d->codecContext->channels;
++    return d->codecContext->ch_layout.nb_channels;
+ }
+ 
+ 
+-- 
+2.52.0
+

diff --git a/k3b.spec b/k3b.spec
index e9f8717..3c08c47 100644
--- a/k3b.spec
+++ b/k3b.spec
@@ -10,7 +10,7 @@ Name:    k3b
 Summary: CD/DVD/Blu-ray burning application
 Epoch:   1
 Version: 23.08.5
-Release: 1%{?dist}
+Release: 2%{?dist}
 
 License: GPL-2.0-or-later
 URL:     http://www.k3b.org/
@@ -29,6 +29,8 @@ Source0: http://download.kde.org/%{stable}/release-service/%{version}/src/%{name
 Patch10: prefer-wodim.patch
 
 ## downstream patches
+# ffmpeg 7 patch
+Patch100: k3b-23.08-ffmpeg7-changes.patch
 
 BuildRequires: desktop-file-utils
 BuildRequires: libappstream-glib
@@ -177,6 +179,9 @@ desktop-file-validate %{buildroot}%{_kf5_datadir}/applications/org.kde.k3b.deskt
 
 
 %changelog
+* Fri Jul 17 2026 Troy Dawson <tdawson@redhat.com> - 1:23.08.5-2
+- Apply patch for ffmpeg7
+
 * Thu Feb 15 2024 Alessandro Astone <ales.astone@gmail.com> - 1:23.08.5-1
 - 23.08.5
 

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-07-20 19:53 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-07-20 19:53 [rpms/k3b] epel9-next: Apply patch for ffmpeg7 Troy Dawson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox