mirror of
https://github.com/encounter/rust-ffmpeg-zmwangx.git
synced 2026-07-10 21:18:40 -07:00
fix(format/chaper): change chapter id to i64
This commit is contained in:
@@ -22,7 +22,7 @@ impl<'a> Chapter<'a> {
|
||||
self.index
|
||||
}
|
||||
|
||||
pub fn id(&self) -> i32 {
|
||||
pub fn id(&self) -> i64 {
|
||||
unsafe { (*self.as_ptr()).id }
|
||||
}
|
||||
|
||||
|
||||
@@ -28,7 +28,7 @@ impl<'a> ChapterMut<'a> {
|
||||
}
|
||||
|
||||
impl<'a> ChapterMut<'a> {
|
||||
pub fn set_id(&mut self, value: i32) {
|
||||
pub fn set_id(&mut self, value: i64) {
|
||||
unsafe {
|
||||
(*self.as_mut_ptr()).id = value;
|
||||
}
|
||||
|
||||
@@ -110,7 +110,7 @@ impl Output {
|
||||
|
||||
pub fn add_chapter<R: Into<Rational>, S: AsRef<str>>(
|
||||
&mut self,
|
||||
id: i32,
|
||||
id: i64,
|
||||
time_base: R,
|
||||
start: i64,
|
||||
end: i64,
|
||||
|
||||
Reference in New Issue
Block a user