clean up video timestamp adjustment in -vsync mode

This commit is contained in:
F. Duncanh
2025-04-24 10:18:47 -04:00
parent 443f7c65d8
commit 2dfb156c63
2 changed files with 3 additions and 2 deletions

View File

@@ -1823,7 +1823,7 @@ extern "C" void video_process (void *cls, raop_ntp_t *ntp, video_decode_struct *
data->ntp_time_remote = data->ntp_time_remote + remote_clock_offset;
pts_mismatch = video_renderer_render_buffer(data->data, &(data->data_len), &(data->nal_count), &(data->ntp_time_remote));
if (pts_mismatch) {
LOGI("adjust timestamps by %8.6f secs", (double) (pts_mismatch / SECOND_IN_NSECS));
LOGI("adjust timestamps by %8.6f secs", (double) pts_mismatch / SECOND_IN_NSECS);
remote_clock_offset += pts_mismatch;
}
count++;