[vlc-devel] commit: * src/input/clock.c: Feed synchro with new ref. point after unexpected discontinuity. Needs testing, should fix ticket #691 no audio/ video in transcode after clock gap in input (Dennis van Amerongen )
Aurelien Nephtali
aurelien at sitadelle.com
Mon Nov 24 17:26:37 CET 2008
git version control wrote:
> vlc | branch: 0.8.6-bugfix | Dennis van Amerongen <trax at videolan.org> | Sun Nov 18 13:36:58 2007 +0000| [219f049e80e6ea100fa74e4e2ba3af8092c81d86] | committer: Jean-Paul Saman
>
> * src/input/clock.c: Feed synchro with new ref. point after unexpected discontinuity. Needs testing, should fix ticket #691 no audio/video in transcode after clock gap in input
> (cherry picked from commit bcae3b195daf5e5a000a8d7815919603e4fd7b76)
>
>> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=219f049e80e6ea100fa74e4e2ba3af8092c81d86
> ---
>
> src/input/clock.c | 5 +++++
> 1 files changed, 5 insertions(+), 0 deletions(-)
>
> diff --git a/src/input/clock.c b/src/input/clock.c
> index d167966..4f8a0b5 100644
> --- a/src/input/clock.c
> +++ b/src/input/clock.c
> @@ -259,6 +259,11 @@ void input_ClockSetPCR( input_thread_t *p_input,
> * stream ?). */
> msg_Warn( p_input, "clock gap, unexpected stream discontinuity" );
> input_ClockInit( p_input, cl, cl->b_master, cl->i_cr_average );
> + /* Feed synchro with a new reference point. */
> + msg_Warn( p_input, "feeding synchro with a new reference point trying to recover from clock gap" );
> + ClockNewRef( cl, i_clock,
> + __MAX( cl->last_pts + CR_MEAN_PTS_GAP, i_mdate ) );
> + cl->i_synchro_state = SYNCHRO_OK;
> }
>
> cl->last_cr = i_clock;
>
Hello Jean-Paul,
I'm affraid this does not fix the problem. I have a TS sample file where
PCR wraps to 0 and when streaming to RTP [1] (for example) audio is gone
once the discontinuity occurs.
I can give you this sample, is there a common place to drop it ?
PS : This issue is still in 0.9.x.
[1] : ./vlc -I dummy /tmp/pcr_wrap --sout '#rtp{dst=127.0.0.1}'
--
Aurélien.
More information about the vlc-devel
mailing list