If not doing passthrough, don't need to find the nearest keyframe

pull/3246/head
Isaac Connor 2021-05-11 10:20:40 -04:00
parent 510b3e606b
commit 76171fcc43
1 changed files with 3 additions and 0 deletions

View File

@ -491,6 +491,9 @@ packetqueue_iterator *PacketQueue::get_event_start_packet_it(
}
ZM_DUMP_PACKET(packet->packet, "");
return it;
} else if (!keep_keyframes) {
// Are encoding, so don't care about keyframes
return it;
}
while ((*it) != pktQueue.begin()) {