[vlc-devel] commit: Small correction to bandlimited. (Laurent Aimar )
git version control
git at videolan.org
Sat Oct 3 18:32:55 CEST 2009
vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Fri Oct 2 20:42:19 2009 +0200| [764c154205ac934bca42267ed3c577ef9c8c1d2a] | committer: Laurent Aimar
Small correction to bandlimited.
It does change the timestamp of the audio buffer after a discontinuity.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=764c154205ac934bca42267ed3c577ef9c8c1d2a
---
modules/audio_filter/resampler/bandlimited.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/modules/audio_filter/resampler/bandlimited.c b/modules/audio_filter/resampler/bandlimited.c
index 6511898..e40cacd 100644
--- a/modules/audio_filter/resampler/bandlimited.c
+++ b/modules/audio_filter/resampler/bandlimited.c
@@ -112,7 +112,7 @@ static block_t *Resample( filter_t * p_filter, block_t * p_in_buf )
/* Check if we really need to run the resampler */
if( i_out_rate == p_filter->fmt_in.audio.i_rate )
{
- if( /*p_filter->b_continuity && /--* What difference does it make ? :) */
+ if( !(p_in_buf->i_flags & BLOCK_FLAG_DISCONTINUITY) &&
p_sys->i_old_wing )
{
/* output the whole thing with the samples from last time */
More information about the vlc-devel
mailing list