From: Kostya Shishkov Date: Thu, 6 Jul 2023 16:30:20 +0000 (+0200) Subject: h264: clear frame refs on flush X-Git-Url: https://git.nihav.org/?a=commitdiff_plain;h=f2cb96fffae1872d6570152983ab52b78623461a;p=nihav.git h264: clear frame refs on flush --- 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(); } }