MCPcopy Create free account
hub / github.com/FFmpeg/FFmpeg / get_master_clock

Function get_master_clock

fftools/ffplay.c:1493–1509  ·  view source on GitHub ↗

get the current master clock value */

Source from the content-addressed store, hash-verified

1491
1492/* get the current master clock value */
1493static double get_master_clock(VideoState *is)
1494{
1495 double val;
1496
1497 switch (get_master_sync_type(is)) {
1498 case AV_SYNC_VIDEO_MASTER:
1499 val = get_clock(&is->vidclk);
1500 break;
1501 case AV_SYNC_AUDIO_MASTER:
1502 val = get_clock(&is->audclk);
1503 break;
1504 default:
1505 val = get_clock(&is->extclk);
1506 break;
1507 }
1508 return val;
1509}
1510
1511static void check_external_clock_speed(VideoState *is) {
1512 if (is->video_stream >= 0 && is->videoq.nb_packets <= EXTERNAL_CLOCK_MIN_FRAMES ||

Callers 6

compute_target_delayFunction · 0.85
video_refreshFunction · 0.85
get_video_frameFunction · 0.85
synchronize_audioFunction · 0.85
seek_chapterFunction · 0.85
event_loopFunction · 0.85

Calls 2

get_master_sync_typeFunction · 0.85
get_clockFunction · 0.85

Tested by

no test coverage detected