mirror of
https://github.com/encounter/rust-ffmpeg-zmwangx.git
synced 2026-07-10 21:18:40 -07:00
codec/decoder/video: change width and height to u32
This commit is contained in:
@@ -24,15 +24,15 @@ impl Video {
|
||||
}
|
||||
}
|
||||
|
||||
pub fn width(&self) -> usize {
|
||||
pub fn width(&self) -> u32 {
|
||||
unsafe {
|
||||
(*self.ptr).width as usize
|
||||
(*self.ptr).width as u32
|
||||
}
|
||||
}
|
||||
|
||||
pub fn height(&self) -> usize {
|
||||
pub fn height(&self) -> u32 {
|
||||
unsafe {
|
||||
(*self.ptr).height as usize
|
||||
(*self.ptr).height as u32
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user