]> git.sesse.net Git - ffmpeg/commit
movenc: Add an API unit test for fragmenting options/calls
authorMartin Storsjö <martin@martin.st>
Thu, 5 Nov 2015 22:12:11 +0000 (00:12 +0200)
committerMartin Storsjö <martin@martin.st>
Tue, 10 Nov 2015 19:50:25 +0000 (21:50 +0200)
commit59e8ec0aa8ab174701d01a3bfe96fedd0b7fcead
treef86bca8dfef6f20b7dae5f4aa726195c72a12993
parent8ad5124b7ecf7f727724e270a7b4bb8c7bcbf6a4
movenc: Add an API unit test for fragmenting options/calls

Contrary to the normal fate tests that run via avconv, this tests
nontrivial call sequences that are only doable via the API
(mainly for different corner cases when using the muxer for
segmenting).

The test muxes fake packet data (with extradata that looks
enough like proper data to make the file be viewable with e.g.
boxdumper) and checks the hash of the produced files. The test also
verifies that fragments produced via different call sequences remain
identical (to avoid e.g. updating the output hashes and suddenly
having fragments that used to be identical suddenly diverging), for
fragments written with frag_discont and/or delay_moov.

Signed-off-by: Martin Storsjö <martin@martin.st>
libavformat/Makefile
libavformat/movenc-test.c [new file with mode: 0644]
tests/fate/libavformat.mak
tests/ref/fate/movenc [new file with mode: 0644]