Commit aa33e358 authored by michael's avatar michael

Compare the correct clocks for syncing video to audio/ext.

Fixes initial delay on video from issue1134.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@21618 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 3d71c59d
......@@ -1026,8 +1026,7 @@ static double compute_frame_delay(double frame_current_pts, VideoState *is)
is->av_sync_type == AV_SYNC_EXTERNAL_CLOCK)) {
/* if video is slave, we try to correct big delays by
duplicating or deleting a frame */
ref_clock = get_master_clock(is);
diff = frame_current_pts - ref_clock;
diff = get_video_clock(is) - get_master_clock(is);
/* skip or repeat frame. We take into account the
delay to compute the threshold. I still don't know
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment