[vlc-commits] float: fix copy-paste error in double precision amp

Rémi Denis-Courmont git at videolan.org
Tue May 20 13:10:28 CEST 2014


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Tue May 20 19:08:51 2014 +0800| [e0e95c4a1bf4d9556c440479b95a1e97426a1766] | committer: Rémi Denis-Courmont

float: fix copy-paste error in double precision amp

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=e0e95c4a1bf4d9556c440479b95a1e97426a1766
---

 modules/audio_mixer/float.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/audio_mixer/float.c b/modules/audio_mixer/float.c
index 8ebdf6c..227069e 100644
--- a/modules/audio_mixer/float.c
+++ b/modules/audio_mixer/float.c
@@ -61,7 +61,7 @@ static void FilterFL32( audio_volume_t *p_volume, block_t *p_buffer,
         return; /* nothing to do */
 
     float *p = (float *)p_buffer->p_buffer;
-    for( size_t i = p_buffer->i_buffer / sizeof(float); i > 0; i-- )
+    for( size_t i = p_buffer->i_buffer / sizeof(*p); i > 0; i-- )
         *(p++) *= f_multiplier;
 
     (void) p_volume;
@@ -75,7 +75,7 @@ static void FilterFL64( audio_volume_t *p_volume, block_t *p_buffer,
     if( mult == 1. )
         return; /* nothing to do */
 
-    for( size_t i = p_buffer->i_buffer / sizeof(float); i > 0; i-- )
+    for( size_t i = p_buffer->i_buffer / sizeof(*p); i > 0; i-- )
         *(p++) *= mult;
 
     (void) p_volume;



More information about the vlc-commits mailing list