]> git.sesse.net Git - vlc/commitdiff
* Fixed libmad's output volume.
authorChristophe Massiot <massiot@videolan.org>
Wed, 28 Aug 2002 22:44:31 +0000 (22:44 +0000)
committerChristophe Massiot <massiot@videolan.org>
Wed, 28 Aug 2002 22:44:31 +0000 (22:44 +0000)
modules/audio_filter/converter/fixed32tofloat32.c

index d936fd1bca002506302e88903d440d39de3eb8b9..ada6df83fbb3454f7647a9c1a8a46e0603d55c44 100644 (file)
@@ -2,7 +2,7 @@
  * fixed32float32.c : converter from fixed32 to float32 bits integer
  *****************************************************************************
  * Copyright (C) 2002 VideoLAN
- * $Id: fixed32tofloat32.c,v 1.7 2002/08/22 17:14:52 sam Exp $
+ * $Id: fixed32tofloat32.c,v 1.8 2002/08/28 22:44:31 massiot Exp $
  *
  * Authors: Jean-Paul Saman <jpsaman@wxs.nl>
  *
@@ -87,7 +87,7 @@ static void DoWork( aout_instance_t * p_aout, aout_filter_t * p_filter,
 
     for ( i = p_in_buf->i_nb_samples * p_filter->input.i_channels ; i-- ; )
     {
-        *p_out++ = (float)*p_in++ / -(float)FIXED32_MIN;
+        *p_out++ = (float)*p_in++ / (float)FIXED32_ONE;
     }
 
     p_out_buf->i_nb_samples = p_in_buf->i_nb_samples;