public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/fooyin] f45: Fix endian-dependent test
@ 2026-10-23 18:15 Elaine Gibson
  0 siblings, 0 replies; only message in thread
From: Elaine Gibson @ 2026-10-23 18:15 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/fooyin
Branch : f45
Commit : cda03dd2e52fd7542bed252a029a7a30b914919d
Author : Elaine Gibson <ypsvlq@gmail.com>
Date   : 2026-10-23T19:14:34+01:00
Stats  : +32/-0 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/fooyin/c/cda03dd2e52fd7542bed252a029a7a30b914919d?branch=f45

Log:
Fix endian-dependent test

---
diff --git a/56dd74893588c4f1d25a9163ce3278bd414755c2.patch b/56dd74893588c4f1d25a9163ce3278bd414755c2.patch
new file mode 100644
index 0000000..9d61140
--- /dev/null
+++ b/56dd74893588c4f1d25a9163ce3278bd414755c2.patch
@@ -0,0 +1,31 @@
+From 56dd74893588c4f1d25a9163ce3278bd414755c2 Mon Sep 17 00:00:00 2001
+From: Luke Taylor <luket@pm.me>
+Date: Fri, 23 Oct 2026 19:03:48 +0100
+Subject: [PATCH] [tests] Fix endian-dependent PCM comparison
+
+Addresses #1811
+---
+ tests/core/engine/ffmpegencodertest.cpp | 3 +++
+ 1 file changed, 3 insertions(+)
+
+diff --git a/tests/core/engine/ffmpegencodertest.cpp b/tests/core/engine/ffmpegencodertest.cpp
+index 140115134..83f48be8f 100644
+--- a/tests/core/engine/ffmpegencodertest.cpp
++++ b/tests/core/engine/ffmpegencodertest.cpp
+@@ -28,6 +28,7 @@
+ #include <QDir>
+ #include <QFileInfo>
+ #include <QTemporaryDir>
++#include <QtEndian>
+ 
+ extern "C"
+ {
+@@ -604,6 +605,8 @@ TEST(FFmpegInputTest, PreservesFramesWhenReadSizeIsNotFrameAligned)
+         decoded.append(reinterpret_cast<const char*>(data.data()), static_cast<qsizetype>(data.size()));
+     }
+ 
++    // WAV stores little endian samples, while the decoder returns native endian PCM
++    qFromLittleEndian<int16_t>(pcm.constData(), pcm.size() / sizeof(int16_t), pcm.data());
+     EXPECT_EQ(decoded, pcm);
+ }
+ 

diff --git a/fooyin.spec b/fooyin.spec
index 2fcc6e8..f194196 100644
--- a/fooyin.spec
+++ b/fooyin.spec
@@ -7,6 +7,7 @@ License:        GPL-3.0-or-later
 URL:            https://www.fooyin.org/
 Source0:        https://github.com/fooyin/fooyin/archive/v%{version}/fooyin-%{version}.tar.gz
 Patch0:         https://github.com/fooyin/fooyin/commit/12b32d2c467f4351516ae066c1204b8867df4e94.patch
+Patch1:         https://github.com/fooyin/fooyin/commit/56dd74893588c4f1d25a9163ce3278bd414755c2.patch
 
 ExcludeArch:    %{ix86}
 

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

only message in thread, other threads:[~2026-10-23 18:15 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-23 18:15 [rpms/fooyin] f45: Fix endian-dependent test Elaine Gibson

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