diff --git a/src/codec/decoder/video.rs b/src/codec/decoder/video.rs index e18bb5f..bb71460 100644 --- a/src/codec/decoder/video.rs +++ b/src/codec/decoder/video.rs @@ -1,4 +1,4 @@ -use std::ops::Deref; +use std::ops::{Deref, DerefMut}; use libc::c_int; use ffi::*; @@ -138,4 +138,8 @@ impl Deref for Video { } } - +impl DerefMut for Video { + fn deref_mut(&mut self) -> &mut::Target { + &mut self.0 + } +}