diff --git a/src/lib.rs b/src/lib.rs index 3d00c3c..5c59436 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -58,10 +58,14 @@ impl Mp4Muxer { } pub fn write_video(&self, data: &[u8]) { + self.write_video_with_fps(data, 60) + } + + pub fn write_video_with_fps(&self, data: &[u8], fps: u32) { unsafe { write_mp4( self.muxer_writer, - 60, + fps as c_int, data.as_ptr() as *const c_void, data.len().try_into().unwrap(), );