projects
/
nihav.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
add flush() to decoder interface
[nihav.git]
/
nihav-indeo
/
src
/
codecs
/
indeo3.rs
diff --git
a/nihav-indeo/src/codecs/indeo3.rs
b/nihav-indeo/src/codecs/indeo3.rs
index 9687f94a0fa217695b07200aa47c8f755a5168a3..6e03cb3b308da41ed49dc8b065d9c521fc696df0 100644
(file)
--- a/
nihav-indeo/src/codecs/indeo3.rs
+++ b/
nihav-indeo/src/codecs/indeo3.rs
@@
-783,6
+783,9
@@
impl NADecoder for Indeo3Decoder {
frm.set_frame_type(if intraframe { FrameType::I } else { FrameType::P });
Ok(frm.into_ref())
}
+ fn flush(&mut self) {
+ self.bufs.reset();
+ }
}
pub fn get_decoder() -> Box<dyn NADecoder> {