From 391969281ae57b66e0cde8d0ba12d78ce2662b57 Mon Sep 17 00:00:00 2001 From: Good Guy Date: Thu, 1 Jan 2026 15:03:01 -0700 Subject: [PATCH] Correct location of audiofile-0.3.6.patch to thirdparty/src --- 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::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 + { -- 2.34.1