We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
TestMP4::testUpdateStco()
1 parent b3d7245 commit 79839a0Copy full SHA for 79839a0
tests/taglib/test_mp4.rs
@@ -137,8 +137,28 @@ fn test_is_empty() {
137
}
138
139
#[test]
140
+#[ignore] // TODO: The atom parsing internals are not exposed yet
141
fn test_update_stco() {
- todo!("We don't update stco atoms")
142
+ let mut file = temp_file!("no-tags.3g2");
143
+
144
+ {
145
+ let mut f = Mp4File::read_from(&mut file, ParseOptions::new()).unwrap();
146
+ file.rewind().unwrap();
147
148
+ let mut tag = Ilst::default();
149
+ tag.set_artist("X".repeat(3000));
150
+ f.set_ilst(tag);
151
152
+ // Find and collect all `stco` offsets
153
154
+ f.save_to(&mut file).unwrap();
155
+ }
156
157
158
+ let _f = Mp4File::read_from(&mut file, ParseOptions::new()).unwrap();
159
160
+ // Find and collect all `stco` offsets, compare with previous
161
162
163
164
0 commit comments