Fixes a delay and initial frame drops on starting realtime streams with
external clock.
Signed-off-by: Marton Balint <cus@passwd.hu>
... | ... |
@@ -2835,7 +2835,8 @@ static VideoState *stream_open(const char *filename, AVInputFormat *iformat) |
2835 | 2835 |
|
2836 | 2836 |
is->continue_read_thread = SDL_CreateCond(); |
2837 | 2837 |
|
2838 |
- update_external_clock_pts(is, 0.0); |
|
2838 |
+ //FIXME: use a cleaner way to signal obsolete external clock... |
|
2839 |
+ update_external_clock_pts(is, (double)AV_NOPTS_VALUE); |
|
2839 | 2840 |
update_external_clock_speed(is, 1.0); |
2840 | 2841 |
is->audio_current_pts_drift = -av_gettime() / 1000000.0; |
2841 | 2842 |
is->video_current_pts_drift = is->audio_current_pts_drift; |