From f2cb96fffae1872d6570152983ab52b78623461a Mon Sep 17 00:00:00 2001 From: Kostya Shishkov Date: Thu, 6 Jul 2023 18:30:20 +0200 Subject: [PATCH] h264: clear frame refs on flush --- nihav-itu/src/codecs/h264/decoder_mt.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/nihav-itu/src/codecs/h264/decoder_mt.rs b/nihav-itu/src/codecs/h264/decoder_mt.rs index 69a335b..27570e5 100644 --- a/nihav-itu/src/codecs/h264/decoder_mt.rs +++ b/nihav-itu/src/codecs/h264/decoder_mt.rs @@ -923,6 +923,7 @@ impl NADecoderMT for H264MTDecoder { } fn flush(&mut self) { clear_threads(&mut self.dispatch); + self.frame_refs.clear_refs(); } } -- 2.39.5