diff options
author | Martin Storsjö <martin@martin.st> | 2016-04-07 16:16:27 +0300 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2017-05-15 14:08:53 +0300 |
commit | 7c35bee0251efc271c8f7900ce816fcb8ec25d19 (patch) | |
tree | 86f7b8e4122712dfce1744f6139c4c8fedb4531c /libavformat/tests | |
parent | c415c8104c46f5a75306fff1235124b189e86d06 (diff) | |
download | ffmpeg-7c35bee0251efc271c8f7900ce816fcb8ec25d19.tar.gz |
movenc-test: Add tests for negative cts offsets
Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavformat/tests')
-rw-r--r-- | libavformat/tests/movenc.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/libavformat/tests/movenc.c b/libavformat/tests/movenc.c index 583a8d9ca4..f2aa662b3c 100644 --- a/libavformat/tests/movenc.c +++ b/libavformat/tests/movenc.c @@ -741,6 +741,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); |