[FFmpeg-cvslog] r17434 - trunk/ffplay.c
benoit
subversion
Wed Feb 18 16:25:58 CET 2009
Author: benoit
Date: Wed Feb 18 16:25:57 2009
New Revision: 17434
Log:
Move debug trace to the new compute_frame_delay() function.
Patch by Tomer Barletz: barletz gmail
Modified:
trunk/ffplay.c
Modified: trunk/ffplay.c
==============================================================================
--- trunk/ffplay.c Wed Feb 18 16:23:30 2009 (r17433)
+++ trunk/ffplay.c Wed Feb 18 16:25:57 2009 (r17434)
@@ -1048,6 +1048,11 @@ static double compute_frame_delay(double
actual_delay = 0.010;
}
+#if defined(DEBUG_SYNC)
+ printf("video: delay=%0.3f actual_delay=%0.3f pts=%0.3f A-V=%f\n",
+ delay, actual_delay, frame_current_pts, -diff);
+#endif
+
return actual_delay;
}
@@ -1074,11 +1079,6 @@ static void video_refresh_timer(void *op
/* launch timer for next picture */
schedule_refresh(is, (int)(compute_frame_delay(vp->pts, is) * 1000 + 0.5));
-#if defined(DEBUG_SYNC)
- printf("video: delay=%0.3f actual_delay=%0.3f pts=%0.3f A-V=%f\n",
- delay, actual_delay, vp->pts, -diff);
-#endif
-
if(is->subtitle_st) {
if (is->subtitle_stream_changed) {
SDL_LockMutex(is->subpq_mutex);
More information about the ffmpeg-cvslog
mailing list