[vlc-devel] commit: chorus_flanger: No need to cast here. (Pierre d'Herbemont )

git version control git at videolan.org
Fri Aug 21 10:43:44 CEST 2009


vlc | branch: master | Pierre d'Herbemont <pdherbemont at free.fr> | Fri Aug 21 10:43:05 2009 +0200| [b8c7cb7446c523bec46126fa25b0c826e32aa488] | committer: Pierre d'Herbemont 

chorus_flanger: No need to cast here.

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

 modules/audio_filter/chorus_flanger.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/audio_filter/chorus_flanger.c b/modules/audio_filter/chorus_flanger.c
index 2936d4a..a2e59bd 100644
--- a/modules/audio_filter/chorus_flanger.c
+++ b/modules/audio_filter/chorus_flanger.c
@@ -238,8 +238,8 @@ static void DoWork( aout_instance_t *p_aout, aout_filter_t *p_filter,
     struct aout_filter_sys_t *p_sys = p_filter->p_sys;
     int i_chan;
     int i_samples = p_in_buf->i_nb_samples; /* Gives the number of samples */
-    int i_maxOffset = (int)floor( p_sys->f_sweepDepth * p_sys->i_sampleRate /
-            1000 ); /*maximum number of samples to offset in buffer */
+    /* maximum number of samples to offset in buffer */
+    int i_maxOffset = floor( p_sys->f_sweepDepth * p_sys->i_sampleRate / 1000 );
     float *p_out = (float*)p_out_buf->p_buffer;
     float *p_in =  (float*)p_in_buf->p_buffer;
 




More information about the vlc-devel mailing list