Revision 41a4cd0c

View differences:

ffplay.c
938 938
/* get the current video clock value */
939 939
static double get_video_clock(VideoState *is)
940 940
{
941
    double delta;
942 941
    if (is->paused) {
943
        delta = 0;
942
        return is->video_current_pts;
944 943
    } else {
945
        delta = (av_gettime() - is->video_current_pts_time) / 1000000.0;
944
        return is->video_current_pts + (av_gettime() - is->video_current_pts_time) / 1000000.0;
946 945
    }
947
    return is->video_current_pts + delta;
948 946
}
949 947

  
950 948
/* get the current external clock value */

Also available in: Unified diff