diff --git a/src/codec/context.rs b/src/codec/context.rs index f6387b7..75abcae 100644 --- a/src/codec/context.rs +++ b/src/codec/context.rs @@ -15,6 +15,8 @@ pub struct Context { _own: bool, } +unsafe impl Send for Context { } + impl Context { pub unsafe fn wrap(ptr: *mut AVCodecContext) -> Self { Context { ptr: ptr, _own: false } @@ -138,8 +140,6 @@ impl Context { } } -unsafe impl Send for Context { } - impl Drop for Context { fn drop(&mut self) { if self._own {