[vlc-devel] commit: chorus_flanger: Fix a bad cast. (Pierre d'Herbemont )
git version control
git at videolan.org
Fri Aug 21 10:52:54 CEST 2009
vlc | branch: master | Pierre d'Herbemont <pdherbemont at free.fr> | Fri Aug 21 10:51:37 2009 +0200| [01e7806ba99d380f657116b5dc73975c3d69bbe6] | committer: Pierre d'Herbemont
chorus_flanger: Fix a bad cast.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=01e7806ba99d380f657116b5dc73975c3d69bbe6
---
modules/audio_filter/chorus_flanger.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/modules/audio_filter/chorus_flanger.c b/modules/audio_filter/chorus_flanger.c
index a2e59bd..1d02147 100644
--- a/modules/audio_filter/chorus_flanger.c
+++ b/modules/audio_filter/chorus_flanger.c
@@ -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 )
More information about the vlc-devel
mailing list