codec/decoder/opened: add flush method

This commit is contained in:
lummax 2015-10-14 16:22:44 +02:00 committed by meh
parent a736c8b438
commit ac0ef697cf

View File

@ -66,6 +66,12 @@ impl Opened {
}
}
}
pub fn flush(&mut self) {
unsafe {
avcodec_flush_buffers(self.as_mut_ptr());
}
}
}
impl Drop for Opened {