diff --git a/src/codec/context.rs b/src/codec/context.rs index f14ab23..026857d 100644 --- a/src/codec/context.rs +++ b/src/codec/context.rs @@ -1,3 +1,4 @@ +use std::any::Any; use std::ptr; use std::rc::Rc; @@ -11,13 +12,13 @@ use {Codec, Error}; pub struct Context { ptr: *mut AVCodecContext, - owner: Option>, + owner: Option>, } unsafe impl Send for Context {} impl Context { - pub unsafe fn wrap(ptr: *mut AVCodecContext, owner: Option>) -> Self { + pub unsafe fn wrap(ptr: *mut AVCodecContext, owner: Option>) -> Self { Context { ptr, owner } } diff --git a/src/codec/parameters.rs b/src/codec/parameters.rs index f729a1f..97ff6af 100644 --- a/src/codec/parameters.rs +++ b/src/codec/parameters.rs @@ -1,3 +1,4 @@ +use std::any::Any; use std::rc::Rc; use super::{Context, Id}; @@ -6,13 +7,13 @@ use media; pub struct Parameters { ptr: *mut AVCodecParameters, - owner: Option>, + owner: Option>, } unsafe impl Send for Parameters {} impl Parameters { - pub unsafe fn wrap(ptr: *mut AVCodecParameters, owner: Option>) -> Self { + pub unsafe fn wrap(ptr: *mut AVCodecParameters, owner: Option>) -> Self { Parameters { ptr, owner } }