codec/decoder/video: change width and height to u32
This commit is contained in:
parent
3825c5486b
commit
22faf2f99c
@ -24,15 +24,15 @@ impl Video {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn width(&self) -> usize {
|
pub fn width(&self) -> u32 {
|
||||||
unsafe {
|
unsafe {
|
||||||
(*self.ptr).width as usize
|
(*self.ptr).width as u32
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn height(&self) -> usize {
|
pub fn height(&self) -> u32 {
|
||||||
unsafe {
|
unsafe {
|
||||||
(*self.ptr).height as usize
|
(*self.ptr).height as u32
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user