add missing flush() implementation
authorKostya Shishkov <kostya.shishkov@gmail.com>
Mon, 11 Nov 2019 17:42:07 +0000 (18:42 +0100)
committerKostya Shishkov <kostya.shishkov@gmail.com>
Mon, 11 Nov 2019 17:42:07 +0000 (18:42 +0100)
nihav-core/src/codecs/h263/decoder.rs

index 2a841ba0d6097511353636a57b94f5d2c076a43d..494c0e353e4ce2f959232ddeb465105e9c5415c0 100644 (file)
@@ -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<NABufferType> {
         if !self.has_b || self.ipbs.get_lastref().is_none() || self.ipbs.get_nextref().is_none() {