fix(codec): access fields directly

This commit is contained in:
tilpner
2023-05-24 17:22:59 +02:00
committed by Till Höppner
parent 7cd45c647e
commit 7d349eabf7
+2 -2
View File
@@ -84,8 +84,8 @@ impl Codec {
}
}
pub fn max_lowres(&self) -> i32 {
unsafe { av_codec_get_max_lowres(self.as_ptr()) }
pub fn max_lowres(&self) -> u8 {
unsafe { (*self.as_ptr()).max_lowres }
}
pub fn capabilities(&self) -> Capabilities {