[FFmpeg-user] [PATCH] ffplay: reset external clock to unknown on start

Dâniel Fraga fragabr at gmail.com
Fri Dec 21 08:14:17 CET 2012


On Fri, 21 Dec 2012 00:42:04 +0100
Marton Balint <cus at passwd.hu> wrote:

> --- a/ffplay.c
> +++ b/ffplay.c
> @@ -2815,7 +2815,7 @@ static VideoState *stream_open(const char *filename, AVInputFormat *iformat)
>  
>      is->continue_read_thread = SDL_CreateCond();
>  
> -    update_external_clock_pts(is, 0.0);
> +    update_external_clock_pts(is, (double)AV_NOPTS_VALUE);
>      update_external_clock_speed(is, 1.0);
>      is->audio_current_pts_drift = -av_gettime() / 1000000.0;
>      is->video_current_pts_drift = is->audio_current_pts_drift;

	Marton, it works ;).

	Thank you very much!

-- 
Linux 3.7.0: Terrified Chipmunk
http://www.youtube.com/DanielFragaBR
http://www.libertarios.org.br




More information about the ffmpeg-user mailing list