From: Kostya Shishkov Date: Mon, 11 Nov 2019 17:42:07 +0000 (+0100) Subject: add missing flush() implementation X-Git-Url: https://git.nihav.org/?p=nihav.git;a=commitdiff_plain;h=d8ee06da85fe5e695f4eeaf3db72c99e1ac506d2 add missing flush() implementation --- 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() {