From: Sebastian Ramacher Date: Mon, 23 Dec 2024 15:09:33 +0100 Subject: Fix build with GCC-14 From https://gitweb.gentoo.org/repo/gentoo.git/tree/media-sound/musepack-tools/files/musepack-tools-495-incompatible-pointers.patch --- libmpcpsy/ans.c | 4 ++-- mpcenc/mpcenc.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/libmpcpsy/ans.c b/libmpcpsy/ans.c index 3204f2d..1604e08 100644 --- a/libmpcpsy/ans.c +++ b/libmpcpsy/ans.c @@ -287,12 +287,12 @@ NS_Analyse ( PsyModel* m, // 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, (const void*)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, (const void*)m->SCF_Index_R, Transient ); return; } diff --git a/mpcenc/mpcenc.h b/mpcenc/mpcenc.h index 28b9c69..d147845 100644 --- a/mpcenc/mpcenc.h +++ b/mpcenc/mpcenc.h @@ -241,8 +241,8 @@ extern float __invSCF [128 + 6]; // tabulated scalefactors (inverted) 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 );