[FFmpeg-cvslog] r21618 - trunk/ffplay.c

michael subversion
Wed Feb 3 00:22:35 CET 2010


Author: michael
Date: Wed Feb  3 00:22:35 2010
New Revision: 21618

Log:
Compare the correct clocks for syncing video to audio/ext.
Fixes initial delay on video from issue1134.

Modified:
   trunk/ffplay.c

Modified: trunk/ffplay.c
==============================================================================
--- trunk/ffplay.c	Tue Feb  2 23:57:56 2010	(r21617)
+++ trunk/ffplay.c	Wed Feb  3 00:22:35 2010	(r21618)
@@ -1026,8 +1026,7 @@ static double compute_frame_delay(double
          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



More information about the ffmpeg-cvslog mailing list