fix(format/chaper): change chapter id to i64

This commit is contained in:
tilpner
2023-05-24 17:22:59 +02:00
committed by Till Höppner
parent 8ac5eb717d
commit 5e4526e36f
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -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 }
}
+1 -1
View File
@@ -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;
}
+1 -1
View File
@@ -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,