summaryrefslogtreecommitdiffstats
path: root/libavformat/tests
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2017-09-23 18:44:45 +0300
committerMichael Niedermayer <michael@niedermayer.cc>2017-09-28 18:15:45 +0200
commit5455a44aa5077bcd33485f424e055807afcefeb5 (patch)
treedc91b8aee247a782932af3ccfa68afdef1a4f24f /libavformat/tests
parent07e4be7ec94cbd8e674a260c939054f018d337eb (diff)
downloadffmpeg-streaming-5455a44aa5077bcd33485f424e055807afcefeb5.zip
ffmpeg-streaming-5455a44aa5077bcd33485f424e055807afcefeb5.tar.gz
movenc-test: Add tests for negative cts offsets
Signed-off-by: Martin Storsjö <martin@martin.st> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavformat/tests')
-rw-r--r--libavformat/tests/movenc.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/libavformat/tests/movenc.c b/libavformat/tests/movenc.c
index 7a66395..8e59b74 100644
--- a/libavformat/tests/movenc.c
+++ b/libavformat/tests/movenc.c
@@ -766,6 +766,25 @@ int main(int argc, char **argv)
clear_duration = 0;
do_interleave = 0;
+ // Write a fragmented file with b-frames and audio preroll,
+ // with negative cts values, removing the edit list for the
+ // video track.
+ init_out("delay-moov-elst-neg-cts");
+ av_dict_set(&opts, "movflags", "frag_keyframe+delay_moov+negative_cts_offsets", 0);
+ init(1, 1);
+ mux_gops(2);
+ finish();
+ close_out();
+
+ // Write a fragmented file with b-frames without audio preroll,
+ // with negative cts values, avoiding any edit lists, allowing
+ // to use empty_moov instead of delay_moov.
+ init_out("empty-moov-neg-cts");
+ av_dict_set(&opts, "movflags", "frag_keyframe+empty_moov+negative_cts_offsets", 0);
+ init(1, 0);
+ mux_gops(2);
+ finish();
+ close_out();
av_free(md5);
OpenPOWER on IntegriCloud