Fix un-initialised variable in SFC_SET_SCALE_FLOAT_INT_READ.

This commit is contained in:
Erik de Castro Lopo 2004-10-05 08:39:20 +00:00
parent e446bf7440
commit 5a06d12115

View File

@ -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) ;