uint16_t video_timecode = pending_video_frames.front().timecode;
uint16_t audio_timecode = pending_audio_frames.front().timecode;
if (uint16_less_than_with_wraparound(video_timecode, audio_timecode)) {
uint16_t video_timecode = pending_video_frames.front().timecode;
uint16_t audio_timecode = pending_audio_frames.front().timecode;
if (uint16_less_than_with_wraparound(video_timecode, audio_timecode)) {