codec/decoder/opened: add flush
method
This commit is contained in:
parent
a736c8b438
commit
ac0ef697cf
@ -66,6 +66,12 @@ impl Opened {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
pub fn flush(&mut self) {
|
||||
unsafe {
|
||||
avcodec_flush_buffers(self.as_mut_ptr());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl Drop for Opened {
|
||||
|
Loading…
x
Reference in New Issue
Block a user