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

michael subversion
Mon Feb 1 13:30:14 CET 2010


Author: michael
Date: Mon Feb  1 13:30:14 2010
New Revision: 21591

Log:
Move frame_last_delay into flush code as it must be reset on seeks to,
otherwise the first frame after a seek would be delayed by that amount.

Modified:
   trunk/ffplay.c

Modified: trunk/ffplay.c
==============================================================================
--- trunk/ffplay.c	Mon Feb  1 13:27:26 2010	(r21590)
+++ trunk/ffplay.c	Mon Feb  1 13:30:14 2010	(r21591)
@@ -1363,6 +1363,7 @@ static int video_thread(void *arg)
             is->last_dts_for_fault_detection=
             is->last_pts_for_fault_detection= INT64_MIN;
             is->frame_last_pts= AV_NOPTS_VALUE;
+            is->frame_last_delay = 40e-3;
 
             continue;
         }
@@ -1812,7 +1813,6 @@ static int stream_component_open(VideoSt
         is->video_stream = stream_index;
         is->video_st = ic->streams[stream_index];
 
-        is->frame_last_delay = 40e-3;
         is->frame_timer = (double)av_gettime() / 1000000.0;
 //        is->video_current_pts_time = av_gettime();
 



More information about the ffmpeg-cvslog mailing list