projects
/
nihav.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
add missing flush() implementation
[nihav.git]
/
nihav-core
/
src
/
codecs
/
h263
/
decoder.rs
diff --git
a/nihav-core/src/codecs/h263/decoder.rs
b/nihav-core/src/codecs/h263/decoder.rs
index 2a841ba0d6097511353636a57b94f5d2c076a43d..494c0e353e4ce2f959232ddeb465105e9c5415c0 100644
(file)
--- 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() {