mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2026-10-24 02:09:03 +03:00
tests/api/movenc: add a test for fragmented output with no samples
Covers the fix from 9f35e220ff.
Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
@@ -417,6 +417,13 @@ int main(int argc, char **argv)
|
||||
return 1;
|
||||
}
|
||||
|
||||
// Write a fragmented file with an initial moov and no samples.
|
||||
init_out("non-empty-moov-no-mdat");
|
||||
av_dict_set(&opts, "movflags", "+frag_keyframe", 0);
|
||||
init(0, 0);
|
||||
finish();
|
||||
close_out();
|
||||
|
||||
// Write a fragmented file with an initial moov that actually contains some
|
||||
// samples. One moov+mdat with 1 second of data and one moof+mdat with 1
|
||||
// second of data.
|
||||
|
||||
@@ -1,4 +1,8 @@
|
||||
write_data len 36, time nopts, type header atom ftyp
|
||||
write_data len 1123, time nopts, type header atom -
|
||||
write_data len 24, time nopts, type trailer atom -
|
||||
0f878d7b9767582011dfa104de94b1d9 1183 non-empty-moov-no-mdat
|
||||
write_data len 36, time nopts, type header atom ftyp
|
||||
write_data len 2429, time nopts, type header atom -
|
||||
write_data len 788, time 1000000, type sync atom moof
|
||||
write_data len 110, time nopts, type trailer atom -
|
||||
|
||||
Reference in New Issue
Block a user