[FFmpeg-devel] External clock in ffplay

Enrique eterleira
Mon Dec 17 08:37:36 CET 2007

In ffplay.c there is a function; 

/* get the current external clock value */
static double get_external_clock(VideoState *is)
    int64_t ti;
    ti = av_gettime();
    return is->external_clock + ((ti - is->external_clock_time) * 1e-6);

External_clock and external_clock_time are never set only
read. Also, if I set av_sync_type to AV_SYNC_EXTERNAL_CLOCK, I can't seek while playing. If I try to, the program crashes.

Is the code correct, and am i just missing something, or is this a bug ?

- Enrique

More information about the ffmpeg-devel mailing list