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-commonfmt
/
src
/
codecs
/
ts102366.rs
diff --git
a/nihav-commonfmt/src/codecs/ts102366.rs
b/nihav-commonfmt/src/codecs/ts102366.rs
index 65b1b9e28eec85640721db607e68421dd1c6a3f1..62acaebd95278d5ebc1ea4df184410cc36c0bb9a 100644
(file)
--- a/
nihav-commonfmt/src/codecs/ts102366.rs
+++ b/
nihav-commonfmt/src/codecs/ts102366.rs
@@
-1235,6
+1235,9
@@
impl NADecoder for AudioDecoder {
frm.set_keyframe(true);
Ok(frm.into_ref())
}
+ fn flush(&mut self) {
+ self.delay = [[0.0; BLOCK_LEN]; MAX_CHANNELS + 1];
+ }
}
pub fn get_decoder() -> Box<dyn NADecoder> {