mirror of
https://github.com/encounter/rust-ffmpeg-zmwangx.git
synced 2026-07-10 21:18:40 -07:00
codec/decoder/opened: add flush method
This commit is contained in:
@@ -66,6 +66,12 @@ impl Opened {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
pub fn flush(&mut self) {
|
||||
unsafe {
|
||||
avcodec_flush_buffers(self.as_mut_ptr());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl Drop for Opened {
|
||||
|
||||
Reference in New Issue
Block a user