diff options
author | Marton Balint <cus@passwd.hu> | 2012-10-06 19:42:42 +0200 |
---|---|---|
committer | Marton Balint <cus@passwd.hu> | 2012-10-21 17:18:12 +0200 |
commit | 66bb5b1bc9b1e8e856ca20b402f968d621e7eed2 (patch) | |
tree | b6b23f2ebc5be9221b51c7ad1a9a74bda47ca69a /ffplay.c | |
parent | eaa91ed863a72c71553c913f17c3bf2e70a11271 (diff) | |
download | ffmpeg-66bb5b1bc9b1e8e856ca20b402f968d621e7eed2.tar.gz |
ffplay: initialize audio and video pts drift
This makes sensible audio and video clock values even before displaying the
first frame.
Signed-off-by: Marton Balint <cus@passwd.hu>
Diffstat (limited to 'ffplay.c')
-rw-r--r-- | ffplay.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -2677,6 +2677,8 @@ static VideoState *stream_open(const char *filename, AVInputFormat *iformat) is->continue_read_thread = SDL_CreateCond(); + is->audio_current_pts_drift = -av_gettime() / 1000000.0; + is->video_current_pts_drift = is->audio_current_pts_drift; is->av_sync_type = av_sync_type; is->read_tid = SDL_CreateThread(read_thread, is); if (!is->read_tid) { |