diff options
Diffstat (limited to 'nihav-core/src/codecs')
| -rw-r--r-- | nihav-core/src/codecs/h263/decoder.rs | 3 |
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() { |
