next_frame_start = compute_frame_start(frame->pts, pts_origin, video_timebase, start, rate);
video_frame.received_timestamp = next_frame_start;
bool finished_wakeup = producer_thread_should_quit.sleep_until(next_frame_start);
next_frame_start = compute_frame_start(frame->pts, pts_origin, video_timebase, start, rate);
video_frame.received_timestamp = next_frame_start;
bool finished_wakeup = producer_thread_should_quit.sleep_until(next_frame_start);