[FFmpeg-cvslog] ffplay: reset external clock to unknown on start
Marton Balint
git at videolan.org
Sat Dec 29 04:40:35 CET 2012
ffmpeg | branch: master | Marton Balint <cus at passwd.hu> | Fri Dec 21 00:32:18 2012 +0100| [0ca4e9f014839ce26a3975e67a32c36b289d8801] | committer: Marton Balint
ffplay: reset external clock to unknown on start
Fixes a delay and initial frame drops on starting realtime streams with
external clock.
Signed-off-by: Marton Balint <cus at passwd.hu>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=0ca4e9f014839ce26a3975e67a32c36b289d8801
---
ffplay.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/ffplay.c b/ffplay.c
index f9ea20d..5f4f111 100644
--- a/ffplay.c
+++ b/ffplay.c
@@ -2835,7 +2835,8 @@ static VideoState *stream_open(const char *filename, AVInputFormat *iformat)
is->continue_read_thread = SDL_CreateCond();
- update_external_clock_pts(is, 0.0);
+ //FIXME: use a cleaner way to signal obsolete external clock...
+ 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;
More information about the ffmpeg-cvslog
mailing list