Fix again the infinite loop in counting keyframes
parent
dccec69b2e
commit
3ae02948e7
|
@ -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)->keyframe) break;
|
||||
packet_count ++;
|
||||
++rit;
|
||||
}
|
||||
++rit;
|
||||
}
|
||||
Debug(1, "Have keyframe interval: %d", packet_count);
|
||||
max_keyframe_interval_ = packet_count;
|
||||
|
|
Loading…
Reference in New Issue