From d8ee06da85fe5e695f4eeaf3db72c99e1ac506d2 Mon Sep 17 00:00:00 2001 From: Kostya Shishkov Date: Mon, 11 Nov 2019 18:42:07 +0100 Subject: [PATCH] add missing flush() implementation --- nihav-core/src/codecs/h263/decoder.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/nihav-core/src/codecs/h263/decoder.rs b/nihav-core/src/codecs/h263/decoder.rs index 2a841ba..494c0e3 100644 --- a/nihav-core/src/codecs/h263/decoder.rs +++ b/nihav-core/src/codecs/h263/decoder.rs @@ -520,6 +520,9 @@ impl H263BaseDecoder { Ok(bufinfo) } + pub fn flush(&mut self) { + self.ipbs.clear(); + } pub fn get_bframe(&mut self, bdsp: &BlockDSP) -> DecoderResult { if !self.has_b || self.ipbs.get_lastref().is_none() || self.ipbs.get_nextref().is_none() { -- 2.39.5