codec/decoder: adapt accessors to new state transitions

This commit is contained in:
lummax
2015-08-25 15:40:02 +02:00
committed by meh
parent ee6004d05e
commit 891b87f25d
4 changed files with 37 additions and 56 deletions

View File

@ -42,12 +42,6 @@ impl Video {
}
}
pub fn set_format(&mut self, value: format::Pixel) {
unsafe {
(*self.as_mut_ptr()).pix_fmt = value.into();
}
}
pub fn has_b_frames(&self) -> bool {
unsafe {
(*self.as_ptr()).has_b_frames != 0