mirror of
https://github.com/encounter/rust-ffmpeg.git
synced 2026-07-10 21:18:39 -07:00
fix(codec): access fields directly
This commit is contained in:
+2
-2
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user