It builds locally on gcc 11.2.0 i586 ...
Reason why it was unnoticed probably because audiofile build disabled
by default and probably only needed for in-tree esound build ...
From 622dcbf602adb359c99b616d713ce2bb6b4f0536 Mon Sep 17 00:00:00 2001
From: Andrew Randrianasulu <[email protected]>
Date: Fri, 5 Dec 2025 13:43:49 +0300
Subject: [PATCH] Patch audiofile-0.3.6 so hopefully it builds on gcc14
---
cinelerra-5.1/thirdparty/src/audiofile-0.3.6.patch | 14 ++++++++++++++
1 file changed, 14 insertions(+)
create mode 100644 cinelerra-5.1/thirdparty/src/audiofile-0.3.6.patch
diff --git a/cinelerra-5.1/thirdparty/src/audiofile-0.3.6.patch b/cinelerra-5.1/thirdparty/src/audiofile-0.3.6.patch
new file mode 100644
index 00000000..40c2a5d8
--- /dev/null
+++ b/cinelerra-5.1/thirdparty/src/audiofile-0.3.6.patch
@@ -0,0 +1,14 @@
+diff --git a/libaudiofile/modules/SimpleModule.h b/libaudiofile/modules/SimpleModule.h
+index 03c6c69..bad85ad 100644
+--- a/libaudiofile/modules/SimpleModule.h
++++ b/libaudiofile/modules/SimpleModule.h
+@@ -123,7 +123,8 @@ struct signConverter
+ typedef typename IntTypes<Format>::UnsignedType UnsignedType;
+
+ static const int kScaleBits = (Format + 1) * CHAR_BIT - 1;
+- static const int kMinSignedValue = -1 << kScaleBits;
++ static const int kMaxSignedValue = (((1 << (kScaleBits - 1)) - 1) << 1) + 1;
++ static const int kMinSignedValue = -kMaxSignedValue - 1;
+
+ struct signedToUnsigned : public std::unary_function<SignedType, UnsignedType>
+ {
--
2.46.4
_______________________________________________
Cin mailing list -- [email protected]
To unsubscribe send an email to [email protected]