From 151a9d4ac78ae4035bbcff2d2fc351dfdbd216e8 Mon Sep 17 00:00:00 2001 From: IgorA100 Date: Tue, 21 Jul 2026 18:43:49 +0300 Subject: [PATCH] Added startup_keyframe_packet --- src/zm_monitor.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/zm_monitor.h b/src/zm_monitor.h index bab9c4af4..1a8bdb4f6 100644 --- a/src/zm_monitor.h +++ b/src/zm_monitor.h @@ -1091,6 +1091,10 @@ class Monitor : public std::enable_shared_from_this { // A future improvement could eliminate mode-specific checks by relying solely // on this flag to track the decoder state. bool decoder_requires_next_packet = false; + + // Image index of the keyframe that started the current decoder startup. + // -1 means the decoder is not currently in keyframe startup. + int startup_keyframe_packet = -1; }; #define MOD_ADD( var, delta, limit ) (((var)+(limit)+(delta))%(limit))