[FFmpeg-cvslog] r21629 - trunk/ffplay.c
michael
subversion
Wed Feb 3 22:33:31 CET 2010
Author: michael
Date: Wed Feb 3 22:33:31 2010
New Revision: 21629
Log:
Move is->frame_timer init from start to flush_pkt handling so it is also
done on seeking. This fixes the bug where after reaching the end and waiting
a few seconds seeking back to the begin messes up AV sync and playback speed.
Modified:
trunk/ffplay.c
Modified: trunk/ffplay.c
==============================================================================
--- trunk/ffplay.c Wed Feb 3 20:55:45 2010 (r21628)
+++ trunk/ffplay.c Wed Feb 3 22:33:31 2010 (r21629)
@@ -1369,6 +1369,7 @@ static int video_thread(void *arg)
is->last_pts_for_fault_detection= INT64_MIN;
is->frame_last_pts= AV_NOPTS_VALUE;
is->frame_last_delay = 0;
+ is->frame_timer = (double)av_gettime() / 1000000.0;
continue;
}
@@ -1820,7 +1821,6 @@ static int stream_component_open(VideoSt
is->video_stream = stream_index;
is->video_st = ic->streams[stream_index];
- is->frame_timer = (double)av_gettime() / 1000000.0;
// is->video_current_pts_time = av_gettime();
packet_queue_init(&is->videoq);
More information about the ffmpeg-cvslog
mailing list