Fix libc::uint32_t deprecation

This commit is contained in:
Zhiming Wang 2020-05-31 13:28:14 +08:00
parent a7ea073619
commit 3056975836
No known key found for this signature in database
GPG Key ID: 5B58F95EC95965D8

View File

@ -12,7 +12,7 @@ use std::mem;
use ffi::AVSubtitleType::*;
use ffi::*;
use libc::{c_uint, size_t, uint32_t};
use libc::{c_uint, size_t};
#[derive(Eq, PartialEq, Clone, Copy, Debug)]
pub enum Type {
@ -77,7 +77,7 @@ impl Subtitle {
}
pub fn set_start(&mut self, value: u32) {
self.0.start_display_time = value as uint32_t;
self.0.start_display_time = value;
}
pub fn end(&self) -> u32 {
@ -85,7 +85,7 @@ impl Subtitle {
}
pub fn set_end(&mut self, value: u32) {
self.0.end_display_time = value as uint32_t;
self.0.end_display_time = value;
}
pub fn rects(&self) -> RectIter {