mirror of
https://github.com/ZoneMinder/zoneminder.git
synced 2026-10-04 08:25:21 -04:00
Set frames_since_last_keyrrame = 0 instead of 1
This commit is contained in:
1 parent
9f0b5c8cd6
commit
1a3e36424e
1 file changed
+1
-1
@@ -119,7 +119,7 @@ bool PacketQueue::queuePacket(std::shared_ptr<ZMPacket> add_packet) {
|
||||
Debug(1, "Have new keyframe interval %d", max_keyframe_interval_);
|
||||
}
|
||||
} else {
|
||||
frames_since_last_keyframe_ = 1;
|
||||
frames_since_last_keyframe_ = 0;
|
||||
if (!max_keyframe_interval_) max_keyframe_interval_ = 1;
|
||||
}
|
||||
} else {
|
||||
|
||||
Reference in new issue
Block a user