Commit c2cb5785 authored by michael's avatar michael

Simplify get_video_clock()


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@21582 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 265adfed
......@@ -938,13 +938,11 @@ static double get_audio_clock(VideoState *is)
/* get the current video clock value */
static double get_video_clock(VideoState *is)
{
double delta;
if (is->paused) {
delta = 0;
return is->video_current_pts;
} else {
delta = (av_gettime() - is->video_current_pts_time) / 1000000.0;
return is->video_current_pts + (av_gettime() - is->video_current_pts_time) / 1000000.0;
}
return is->video_current_pts + delta;
}
/* get the current external clock value */
......
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