]> git.sesse.net Git - vlc/commitdiff
chorus_flanger: Fix a bad cast.
authorPierre d'Herbemont <pdherbemont@free.fr>
Fri, 21 Aug 2009 08:51:37 +0000 (10:51 +0200)
committerPierre d'Herbemont <pdherbemont@free.fr>
Fri, 21 Aug 2009 08:51:37 +0000 (10:51 +0200)
modules/audio_filter/chorus_flanger.c

index a2e59bdddf212429044c154386b92bda80d94fb9..1d02147a817ffeac56ae70b18366a0e2e31899cc 100644 (file)
@@ -275,8 +275,9 @@ static void DoWork( aout_instance_t *p_aout, aout_filter_t *p_filter,
             }
         }
         /* Calculate position in delay */
+        int offset = floor( p_sys->f_offset );
         pf_ptr = p_sys->pf_write + i_maxOffset * p_sys->i_channels +
-            (int)( floor( p_sys->f_offset ) ) * p_sys->i_channels;
+            offset * p_sys->i_channels;
 
         /* Handle Overflow */
         if( pf_ptr < p_sys->pf_delayLineStart )