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

Marton Balint cus at passwd.hu
Fri Dec 21 00:42:04 CET 2012


Signed-off-by: Marton Balint <cus at passwd.hu>
---
 ffplay.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ffplay.c b/ffplay.c
index d5985f7..c2c537e 100644
--- 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;
-- 
1.7.10.4



More information about the ffmpeg-user mailing list