Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
7c35bee0
Commit
7c35bee0
authored
Apr 07, 2016
by
Martin Storsjö
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
movenc-test: Add tests for negative cts offsets
Signed-off-by:
Martin Storsjö
<
martin@martin.st
>
parent
c415c810
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
0 deletions
+30
-0
movenc.c
libavformat/tests/movenc.c
+19
-0
movenc
tests/ref/fate/movenc
+11
-0
No files found.
libavformat/tests/movenc.c
View file @
7c35bee0
...
...
@@ -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
);
...
...
tests/ref/fate/movenc
View file @
7c35bee0
...
...
@@ -133,3 +133,14 @@ write_data len 476, time 1566667, type sync atom moof
write_data len 340, time 2233333, type boundary atom moof
write_data len 262, time nopts, type trailer atom -
a4280bdc23af2c4334ec2da3fa946d3a 3541 vfr-noduration-interleave
write_data len 1219, time nopts, type header atom ftyp
write_data len 620, time 0, type sync atom moof
write_data len 616, time 1000000, type sync atom moof
write_data len 148, time nopts, type trailer atom -
35bc6a836b76484daa366b0284cf8c23 2603 delay-moov-elst-neg-cts
write_data len 36, time nopts, type header atom ftyp
write_data len 1147, time nopts, type header atom -
write_data len 900, time 0, type sync atom moof
write_data len 616, time 1033333, type sync atom moof
write_data len 148, time nopts, type trailer atom -
af285c1617bfd4799aa7280447f1947d 2847 empty-moov-neg-cts
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment