Skip to content

Commit 1220fd4

Browse files
ChunMinChangkinetiknz
authored andcommitted
Use absolute path for the minimal.mp4
1 parent 0cdde1a commit 1220fd4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mp4parse_capi/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
//! Err(_) => -1,
1717
//! }
1818
//! }
19-
//!
20-
//! let mut file = std::fs::File::open("mp4parse/tests/minimal.mp4").unwrap();
19+
//! let capi_dir = std::env::var("CARGO_MANIFEST_DIR").unwrap();
20+
//! let mut file = std::fs::File::open(capi_dir + "/../mp4parse/tests/minimal.mp4").unwrap();
2121
//! let io = mp4parse_capi::Mp4parseIo {
2222
//! read: Some(buf_read),
2323
//! userdata: &mut file as *mut _ as *mut std::os::raw::c_void

0 commit comments

Comments
 (0)