]> git.sesse.net Git - vlc/blobdiff - modules/audio_filter/chorus_flanger.c
vod input preparsing : use input events instead of msleep
[vlc] / 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 )