test: new ffmpeg init segment
This commit is contained in:
parent
503c5657ef
commit
f2a9a75725
2 changed files with 7 additions and 0 deletions
|
@ -45,6 +45,13 @@ func TestParser(t *testing.T) {
|
||||||
// TODO: validate movie fragment header data
|
// TODO: validate movie fragment header data
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func TestParserFragmentedMP4Init(t *testing.T) {
|
||||||
|
_, err := testFile(t, "test/fmp4_init.mp4")
|
||||||
|
if err != nil {
|
||||||
|
t.Error(err)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
func validateFileType(t *testing.T, parser *Parser) {
|
func validateFileType(t *testing.T, parser *Parser) {
|
||||||
// get first file type box
|
// get first file type box
|
||||||
fileTypeBox := parser.Content[0].(*FileTypeBox)
|
fileTypeBox := parser.Content[0].(*FileTypeBox)
|
||||||
|
|
BIN
test/fmp4_init.mp4
Normal file
BIN
test/fmp4_init.mp4
Normal file
Binary file not shown.
Loading…
Add table
Reference in a new issue