Fix again the infinite loop in counting keyframes

pull/4202/head
Isaac Connor 2023-09-11 11:26:47 -04:00
parent dccec69b2e
commit 3ae02948e7
1 changed files with 1 additions and 1 deletions

View File

@ -116,8 +116,8 @@ bool PacketQueue::queuePacket(std::shared_ptr<ZMPacket> add_packet) {
if ((*rit)->packet->stream_index == add_packet->packet->stream_index) { if ((*rit)->packet->stream_index == add_packet->packet->stream_index) {
if ((*rit)->keyframe) break; if ((*rit)->keyframe) break;
packet_count ++; packet_count ++;
++rit;
} }
++rit;
} }
Debug(1, "Have keyframe interval: %d", packet_count); Debug(1, "Have keyframe interval: %d", packet_count);
max_keyframe_interval_ = packet_count; max_keyframe_interval_ = packet_count;