aboutsummaryrefslogtreecommitdiffstats
path: root/nihav-core/src
diff options
context:
space:
mode:
authorKostya Shishkov <kostya.shishkov@gmail.com>2019-11-11 18:42:07 +0100
committerKostya Shishkov <kostya.shishkov@gmail.com>2019-11-11 18:42:07 +0100
commitd8ee06da85fe5e695f4eeaf3db72c99e1ac506d2 (patch)
tree0382fc6464e7b91929b11d290d54df18e910b49d /nihav-core/src
parentf9be4e750dccff762b9a3d894faec50ffdb59233 (diff)
downloadnihav-d8ee06da85fe5e695f4eeaf3db72c99e1ac506d2.tar.gz
add missing flush() implementation
Diffstat (limited to 'nihav-core/src')
-rw-r--r--nihav-core/src/codecs/h263/decoder.rs3
1 files changed, 3 insertions, 0 deletions
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<NABufferType> {
if !self.has_b || self.ipbs.get_lastref().is_none() || self.ipbs.get_nextref().is_none() {