mirror of
https://gitee.com/openharmony/third_party_libsnd
synced 2024-11-23 18:09:59 +00:00
Fix un-initialised variable in SFC_SET_SCALE_FLOAT_INT_READ.
This commit is contained in:
parent
e446bf7440
commit
5a06d12115
@ -772,7 +772,8 @@ sf_command (SNDFILE *sndfile, int command, void *data, int datasize)
|
||||
return psf->norm_double ;
|
||||
|
||||
case SFC_SET_SCALE_FLOAT_INT_READ :
|
||||
{ int old_value ;
|
||||
{ int old_value = psf->float_int_mult ;
|
||||
|
||||
psf->float_int_mult = (datasize != 0) ? SF_TRUE : SF_FALSE ;
|
||||
if (psf->float_int_mult && psf->float_max == 0.0)
|
||||
psf->float_max = psf_calc_signal_max (psf, SF_FALSE) ;
|
||||
|
Loading…
Reference in New Issue
Block a user