This commit is contained in:
2024-03-26 21:48:01 +00:00
parent d6c03004ff
commit 4ac111214a
6 changed files with 41 additions and 35 deletions

View File

@ -21,6 +21,8 @@ impl Drop for CodecContext {
fn drop(&mut self) {
unsafe {
avcodec_free_context(&mut self.context);
self.codec = ptr::null_mut();
self.context = ptr::null_mut();
}
}
}