diff options
author | Marton Balint <cus@passwd.hu> | 2012-12-21 00:32:18 +0100 |
---|---|---|
committer | Marton Balint <cus@passwd.hu> | 2012-12-28 20:01:00 +0100 |
commit | 0ca4e9f014839ce26a3975e67a32c36b289d8801 (patch) | |
tree | 85a07c27a20850be33f894ed7d7b139803d655d8 | |
parent | 4e33d8ebb39f4c1869e078a0cc3b808a02aa16c4 (diff) | |
download | ffmpeg-0ca4e9f014839ce26a3975e67a32c36b289d8801.tar.gz |
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@passwd.hu>
-rw-r--r-- | ffplay.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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; |