From 1bb151a684081b24d5bdf3d12a02240c8298dd09 Mon Sep 17 00:00:00 2001 From: Kostya Shishkov Date: Thu, 6 Jul 2023 18:30:04 +0200 Subject: [PATCH] core/reorder: clear frame IDs in MTFrameReorderer on flush --- nihav-core/src/reorder.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/nihav-core/src/reorder.rs b/nihav-core/src/reorder.rs index e8ef622..8f02afd 100644 --- a/nihav-core/src/reorder.rs +++ b/nihav-core/src/reorder.rs @@ -286,6 +286,7 @@ impl MTFrameReorderer { pub fn flush(&mut self) { self.flush_mode = false; self.frames.clear(); + self.ids.clear(); self.output_to = None; self.last_ts = None; } -- 2.30.2