[vlc-devel] [PATCH] transcode: Correctly reset video drift

Rafaël Carré funman at videolan.org
Thu Jun 7 19:02:02 CEST 2012


> From ec143e16e58df8db3e1d333191e15c944335cfc2 Mon Sep 17 00:00:00 2001
> From: Aurelien Nephtali <aurelien.nephtali at gmail.com>
> Date: Thu, 7 Jun 2012 17:39:20 +0200
> Subject: [PATCH 1/2] transcode: Correctly reset video drift
> 
> Broken since 5d34933a25c804a6467251e01567d289a64f6468
> ---
>  modules/stream_out/transcode/video.c |    1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/modules/stream_out/transcode/video.c b/modules/stream_out/transcode/video.c
> index 3ab053e..05a8821 100644
> --- a/modules/stream_out/transcode/video.c
> +++ b/modules/stream_out/transcode/video.c
> @@ -728,6 +728,7 @@ int transcode_video_process( sout_stream_t *p_stream, sout_stream_id_t *id,
>  
>              if( unlikely( b_need_duplicate ) )
>              {
> +                date_Increment( &id->interpolated_pts, 1 );
>  
>                 if( p_sys->i_threads >= 1 )
>                 {

I don't really understand that code, usually I disable audio-sync since
it seems to cause problems.

Can you explain a bit what this change fixes?

I notice interpolated pts is already incremented just above this
if(b_need_duplicate)



More information about the vlc-devel mailing list