[vlc-commits] transcode: when audio samplerate change, also change pts clock value
Ilkka Ollakka
git at videolan.org
Sat Nov 23 12:20:46 CET 2013
vlc | branch: master | Ilkka Ollakka <ileoo at videolan.org> | Sat Nov 23 13:17:34 2013 +0200| [a1e8dd2491d7d51b7422c528503f8c9b3034a612] | committer: Ilkka Ollakka
transcode: when audio samplerate change, also change pts clock value
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a1e8dd2491d7d51b7422c528503f8c9b3034a612
---
modules/stream_out/transcode/audio.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/modules/stream_out/transcode/audio.c b/modules/stream_out/transcode/audio.c
index 874535c..0f11019 100644
--- a/modules/stream_out/transcode/audio.c
+++ b/modules/stream_out/transcode/audio.c
@@ -217,6 +217,9 @@ int transcode_audio_process( sout_stream_t *p_stream,
if( transcode_audio_initialize_filters( p_stream, id, p_sys, &id->p_decoder->fmt_out.audio ) != VLC_SUCCESS )
return VLC_EGENERIC;
+ /* Set interpolated_pts to run with new samplerate */
+ date_Change( &id->interpolated_pts, p_sys->fmt_audio.i_rate, 1 );
+
}
if( p_sys->b_master_sync )
More information about the vlc-commits
mailing list