[packages/musepack-tools] Rel 6
arekm
arekm at pld-linux.org
Fri May 8 23:29:19 CEST 2026
commit 330446e625daccfbd2c1c0499b48c2c48d1e7b87
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Fri May 8 23:29:09 2026 +0200
Rel 6
musepack-tools-ans-scf-ptr-type.patch | 17 +++++++++++++++++
musepack-tools-quantize-ptr-type.patch | 13 +++++++++++++
musepack-tools.spec | 6 +++++-
3 files changed, 35 insertions(+), 1 deletion(-)
---
diff --git a/musepack-tools.spec b/musepack-tools.spec
index b04f851..c77f8c8 100644
--- a/musepack-tools.spec
+++ b/musepack-tools.spec
@@ -7,7 +7,7 @@ Summary: Musepack SV8 tools
Summary(pl.UTF-8): Narzędzia Musepack SV8
Name: musepack-tools
Version: 0.0.1.r%{rev}
-Release: 5
+Release: 6
License: GPL v2+
Group: Libraries
#Source0Download: https://www.musepack.net/index.php?pg=src
@@ -15,6 +15,8 @@ Source0: http://files.musepack.net/source/musepack_src_r%{rev}.tar.gz
# Source0-md5: 754d67be67f713e54baf70fcfdb2817e
Patch0: %{name}-libs.patch
Patch1: %{name}-fno-common.patch
+Patch2: %{name}-ans-scf-ptr-type.patch
+Patch3: %{name}-quantize-ptr-type.patch
URL: http://www.musepack.net/
BuildRequires: cmake >= 2.4
BuildRequires: libcuefile-devel
@@ -67,6 +69,8 @@ Statyczna wersja biblioteki Musepack SV8.
%setup -q -n musepack_src_r%{rev}
%patch -P0 -p0
%patch -P1 -p1
+%patch -P2 -p1
+%patch -P3 -p1
%{__rm} -r include/mpc/.svn
diff --git a/musepack-tools-ans-scf-ptr-type.patch b/musepack-tools-ans-scf-ptr-type.patch
new file mode 100644
index 0000000..47288b9
--- /dev/null
+++ b/musepack-tools-ans-scf-ptr-type.patch
@@ -0,0 +1,17 @@
+--- a/libmpcpsy/ans.c
++++ b/libmpcpsy/ans.c
+@@ -288,12 +288,12 @@
+ // for L or M, respectively
+ memset ( m->FIR_L, 0, sizeof m->FIR_L ); // reset FIR
+ memset ( m->NS_Order_L, 0, sizeof m->NS_Order_L ); // reset Flags
+- FindOptimalANS ( MaxBand, MSflag, ANSspec_L, ANSspec_M, m->NS_Order_L, m->SNR_comp_L, m->FIR_L, smr.L, smr.M, m->SCF_Index_L, Transient );
++ FindOptimalANS ( MaxBand, MSflag, ANSspec_L, ANSspec_M, m->NS_Order_L, m->SNR_comp_L, m->FIR_L, smr.L, smr.M, (int (*)[3]) m->SCF_Index_L, Transient );
+
+ // for R or S, respectively
+ memset ( m->FIR_R, 0, sizeof m->FIR_R ); // reset FIR
+ memset ( m->NS_Order_R, 0, sizeof m->NS_Order_R ); // reset Flags
+- FindOptimalANS ( MaxBand, MSflag, ANSspec_R, ANSspec_S, m->NS_Order_R, m->SNR_comp_R, m->FIR_R, smr.R, smr.S, m->SCF_Index_R, Transient );
++ FindOptimalANS ( MaxBand, MSflag, ANSspec_R, ANSspec_S, m->NS_Order_R, m->SNR_comp_R, m->FIR_R, smr.R, smr.S, (int (*)[3]) m->SCF_Index_R, Transient );
+
+ return;
+ }
diff --git a/musepack-tools-quantize-ptr-type.patch b/musepack-tools-quantize-ptr-type.patch
new file mode 100644
index 0000000..bfb9126
--- /dev/null
+++ b/musepack-tools-quantize-ptr-type.patch
@@ -0,0 +1,13 @@
+--- a/mpcenc/mpcenc.h
++++ b/mpcenc/mpcenc.h
+@@ -254,8 +254,8 @@
+
+ float ISNR_Schaetzer ( const float* samples, const float comp, const int res);
+ float ISNR_Schaetzer_Trans ( const float* samples, const float comp, const int res);
+-void QuantizeSubband ( unsigned int* qu_output, const float* input, const int res, float* errors, const int maxNsOrder );
+-void QuantizeSubbandWithNoiseShaping ( unsigned int* qu_output, const float* input, const int res, float* errors, const float* FIR );
++void QuantizeSubband ( mpc_int16_t* qu_output, const float* input, const int res, float* errors, const int maxNsOrder );
++void QuantizeSubbandWithNoiseShaping ( mpc_int16_t* qu_output, const float* input, const int res, float* errors, const float* FIR );
+
+ void NoiseInjectionComp ( void );
+
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/musepack-tools.git/commitdiff/330446e625daccfbd2c1c0499b48c2c48d1e7b87
More information about the pld-cvs-commit
mailing list