Jean-Baptiste Kempf pushed to branch master at VideoLAN / VLC
Commits:
04a6ffc9 by François Cartegnie at 2026-02-14T14:52:13+01:00
demux: libmp4: use obj instead of stream for logging
- - - - -
78f1ed11 by François Cartegnie at 2026-02-14T14:52:13+01:00
tests: add libmp4
- - - - -
9917bb96 by François Cartegnie at 2026-02-14T14:52:13+01:00
demux: libmp4: simplify GetPath code
- - - - -
e2ded74c by François Cartegnie at 2026-02-14T14:52:13+01:00
demux: libmp4: return Get_Path as value
- - - - -
b0bb49f1 by François Cartegnie at 2026-02-14T14:52:13+01:00
demux: libmp4: return GetInternal by value
- - - - -
8 changed files:
- modules/demux/adaptive/mp4/AtomsReader.cpp
- modules/demux/mp4/heif.c
- modules/demux/mp4/libmp4.c
- modules/demux/mp4/libmp4.h
- modules/demux/mp4/mp4.c
- test/Makefile.am
- + test/modules/demux/libmp4.c
- test/modules/meson.build
Changes:
=====================================
modules/demux/adaptive/mp4/AtomsReader.cpp
=====================================
@@ -63,7 +63,7 @@ bool AtomsReader::parseBlock(block_t *p_block)
if ( MP4_ReadBoxContainerChildren( stream, rootbox, nullptr ) == 1 )
{
#ifndef NDEBUG
- MP4_BoxDumpStructure(stream, rootbox);
+ MP4_BoxDumpStructure(object, rootbox);
#endif
}
vlc_stream_Delete(stream);
=====================================
modules/demux/mp4/heif.c
=====================================
@@ -855,7 +855,7 @@ int OpenHEIF( vlc_object_t * p_this )
if( !p_root )
return VLC_EGENERIC;
- MP4_BoxDumpStructure( p_demux->s, p_root );
+ MP4_BoxDumpStructure( VLC_OBJECT(p_demux), p_root );
struct heif_private_t *p_sys = calloc( 1, sizeof(*p_sys) );
p_demux->p_sys = (void *) p_sys;
=====================================
modules/demux/mp4/libmp4.c
=====================================
@@ -5616,7 +5616,7 @@ error:
}
-static void MP4_BoxDumpStructure_Internal( stream_t *s, const MP4_Box_t *p_box,
+static void MP4_BoxDumpStructure_Internal( vlc_object_t *obj, const MP4_Box_t
*p_box,
unsigned int i_level )
{
const MP4_Box_t *p_child;
@@ -5625,7 +5625,7 @@ static void MP4_BoxDumpStructure_Internal( stream_t *s,
const MP4_Box_t *p_box,
if( !i_level )
{
- msg_Dbg( s, "dumping root Box \"%4.4s\"",
+ msg_Dbg( obj, "dumping root Box \"%4.4s\"",
(char*)&i_displayedtype );
}
else
@@ -5644,19 +5644,19 @@ static void MP4_BoxDumpStructure_Internal( stream_t *s,
const MP4_Box_t *p_box,
"+ %4.4s size %"PRIu64" offset %"PRIu64"%s",
(char *)&i_displayedtype, p_box->i_size, p_box->i_pos,
p_box->e_flags & BOX_FLAG_INCOMPLETE ? " (\?\?\?\?)" : "" );
- msg_Dbg( s, "%s", str );
+ msg_Dbg( obj, "%s", str );
}
p_child = p_box->p_first;
while( p_child )
{
- MP4_BoxDumpStructure_Internal( s, p_child, i_level + 1 );
+ MP4_BoxDumpStructure_Internal( obj, p_child, i_level + 1 );
p_child = p_child->p_next;
}
}
-void MP4_BoxDumpStructure( stream_t *s, const MP4_Box_t *p_box )
+void MP4_BoxDumpStructure( vlc_object_t *obj, const MP4_Box_t *p_box )
{
- MP4_BoxDumpStructure_Internal( s, p_box, 0 );
+ MP4_BoxDumpStructure_Internal( obj, p_box, 0 );
}
@@ -5711,45 +5711,31 @@ static bool get_token( const char **ppsz_path, char
**ppsz_token, unsigned *pi_n
return true;
}
-static void MP4_BoxGet_Path( const MP4_Box_t **pp_result, const MP4_Box_t
*p_box,
- const char *psz_path)
+static const MP4_Box_t * MP4_BoxGet_Path( const MP4_Box_t *p_box, const char
*psz_path)
{
- char *psz_token = NULL;
-
- if( !p_box )
- {
- *pp_result = NULL;
- return;
- }
-
assert( psz_path && psz_path[0] );
// fprintf( stderr, "path:'%s'\n", psz_path );
- for( ; ; )
+ for( ; p_box ; )
{
unsigned i_number;
+ char *psz_token = NULL;
if( !get_token( &psz_path, &psz_token, &i_number ) )
- goto error_box;
+ {
+ p_box = NULL;
+ break;
+ }
// fprintf( stderr, "path:'%s', token:'%s' n:%d\n",
// psz_path,psz_token,i_number );
if( !psz_token )
- {
- *pp_result = p_box;
- return;
- }
- else
+ break;
+
if( !strcmp( psz_token, "/" ) )
{
/* Find root box */
while( p_box && p_box->i_type != ATOM_root )
- {
p_box = p_box->p_father;
- }
- if( !p_box )
- {
- goto error_box;
- }
}
else
if( !strcmp( psz_token, "." ) )
@@ -5760,80 +5746,46 @@ static void MP4_BoxGet_Path( const MP4_Box_t
**pp_result, const MP4_Box_t *p_box
if( !strcmp( psz_token, ".." ) )
{
p_box = p_box->p_father;
- if( !p_box )
- {
- goto error_box;
- }
}
else
- if( strlen( psz_token ) == 4 )
{
- uint32_t i_fourcc;
- i_fourcc = VLC_FOURCC( psz_token[0], psz_token[1],
- psz_token[2], psz_token[3] );
- p_box = p_box->p_first;
- for( ; ; )
+ size_t len = strlen( psz_token );
+ if( len != 0 && len != 4 )
{
- if( !p_box )
- {
- goto error_box;
- }
- if( p_box->i_type == i_fourcc )
- {
- if( !i_number )
- {
- break;
- }
- i_number--;
- }
- p_box = p_box->p_next;
+// fprintf( stderr, "Argg malformed token \"%s\"",psz_token );
+ free( psz_token );
+ p_box = NULL;
+ break;
}
- }
- else
- if( *psz_token == '\0' )
- {
- p_box = p_box->p_first;
- for( ; ; )
+
+ uint32_t i_fourcc = 0 ;
+ if( len == 4 )
+ i_fourcc = VLC_FOURCC( psz_token[0], psz_token[1],
+ psz_token[2], psz_token[3] );
+
+ for( p_box = p_box->p_first; p_box; p_box = p_box->p_next )
{
- if( !p_box )
- {
- goto error_box;
- }
- if( !i_number )
- {
+ if( i_fourcc && p_box->i_type != i_fourcc )
+ continue;
+ if( i_number == 0 )
break;
- }
i_number--;
- p_box = p_box->p_next;
}
}
- else
- {
-// fprintf( stderr, "Argg malformed token \"%s\"",psz_token );
- goto error_box;
- }
free( psz_token );
}
- return;
-
-error_box:
- free( psz_token );
- *pp_result = NULL;
- return;
+ return p_box;
}
-static void MP4_BoxGet_Internal( const MP4_Box_t **pp_result, const MP4_Box_t
*p_box,
+static const MP4_Box_t * MP4_BoxGet_Internal( const MP4_Box_t *p_box,
const char *psz_fmt, va_list args)
{
char *psz_path;
if( !p_box )
- {
- *pp_result = NULL;
- return;
- }
+ return NULL;
if( vasprintf( &psz_path, psz_fmt, args ) == -1 )
psz_path = NULL;
@@ -5841,13 +5793,12 @@ static void MP4_BoxGet_Internal( const MP4_Box_t
**pp_result, const MP4_Box_t *p
if( !psz_path || !psz_path[0] )
{
free( psz_path );
- *pp_result = NULL;
- return;
+ return NULL;
}
- MP4_BoxGet_Path( pp_result, p_box, psz_path );
-
+ const MP4_Box_t *p_result = MP4_BoxGet_Path( p_box, psz_path );
free( psz_path );
+ return p_result;
}
/*****************************************************************************
@@ -5865,7 +5816,7 @@ MP4_Box_t *MP4_BoxGetVa( const MP4_Box_t *p_box, const
char *psz_fmt, ... )
const MP4_Box_t *p_result;
va_start( args, psz_fmt );
- MP4_BoxGet_Internal( &p_result, p_box, psz_fmt, args );
+ p_result = MP4_BoxGet_Internal( p_box, psz_fmt, args );
va_end( args );
return( (MP4_Box_t *) p_result );
@@ -5873,11 +5824,7 @@ MP4_Box_t *MP4_BoxGetVa( const MP4_Box_t *p_box, const
char *psz_fmt, ... )
MP4_Box_t *MP4_BoxGet( const MP4_Box_t *p_box, const char *psz_fmt )
{
- const MP4_Box_t *p_result;
-
- MP4_BoxGet_Path( &p_result, p_box, psz_fmt );
-
- return( (MP4_Box_t *) p_result );
+ return (MP4_Box_t *) MP4_BoxGet_Path( p_box, psz_fmt );
}
/*****************************************************************************
@@ -5896,7 +5843,7 @@ unsigned MP4_BoxCountVa( const MP4_Box_t *p_box, const
char *psz_fmt, ... )
const MP4_Box_t *p_result, *p_next;
va_start( args, psz_fmt );
- MP4_BoxGet_Internal( &p_result, p_box, psz_fmt, args );
+ p_result = MP4_BoxGet_Internal( p_box, psz_fmt, args );
va_end( args );
if( !p_result )
{
@@ -5919,7 +5866,7 @@ unsigned MP4_BoxCount( const MP4_Box_t *p_box, const char
*psz_fmt )
unsigned i_count;
const MP4_Box_t *p_result, *p_next;
- MP4_BoxGet_Path( &p_result, p_box, psz_fmt );
+ p_result = MP4_BoxGet_Path( p_box, psz_fmt );
if( !p_result )
{
return( 0 );
=====================================
modules/demux/mp4/libmp4.h
=====================================
@@ -1956,7 +1956,7 @@ void MP4_BoxFree( MP4_Box_t *p_box );
*****************************************************************************
* Useful while debugging
*****************************************************************************/
-void MP4_BoxDumpStructure( stream_t *p_input, const MP4_Box_t *p_box );
+void MP4_BoxDumpStructure( vlc_object_t *, const MP4_Box_t *p_box );
/*****************************************************************************
* MP4_BoxGetVa: find a box given a path relative to p_box
=====================================
modules/demux/mp4/mp4.c
=====================================
@@ -1058,7 +1058,7 @@ static int Open( vlc_object_t * p_this )
if( LoadInitFrag( p_demux ) != VLC_SUCCESS )
goto error;
- MP4_BoxDumpStructure( p_demux->s, p_sys->p_root );
+ MP4_BoxDumpStructure( VLC_OBJECT(p_demux), p_sys->p_root );
if( ( p_ftyp = MP4_BoxGet( p_sys->p_root, "/ftyp" ) ) )
{
=====================================
test/Makefile.am
=====================================
@@ -77,6 +77,7 @@ check_PROGRAMS = \
test_modules_packetizer_mpegvideo \
test_modules_codec_hxxx_helper \
test_modules_keystore \
+ test_modules_demux_libmp4 \
test_modules_demux_timestamps \
test_modules_demux_timestamps_filter \
test_modules_demux_ts_pes \
@@ -342,6 +343,10 @@ test_modules_keystore_SOURCES = modules/keystore/test.c
test_modules_keystore_LDADD = $(LIBVLCCORE) $(LIBVLC)
test_modules_tls_SOURCES = modules/misc/tls.c
test_modules_tls_LDADD = $(LIBVLCCORE) $(LIBVLC)
+test_modules_demux_libmp4_LDADD = $(LIBVLCCORE) $(LIBVLC) $(LIBM) $(LIBZ)
+test_modules_demux_libmp4_SOURCES = modules/demux/libmp4.c \
+ ../modules/demux/mp4/libmp4.c \
+ ../modules/demux/mp4/libmp4.h
test_modules_demux_timestamps_SOURCES = modules/demux/timestamps.c
test_modules_demux_timestamps_filter_LDADD = $(LIBVLCCORE) $(LIBVLC)
test_modules_demux_timestamps_filter_SOURCES =
modules/demux/timestamps_filter.c
=====================================
test/modules/demux/libmp4.c
=====================================
@@ -0,0 +1,739 @@
+/*****************************************************************************
+ * libmp4.c: libmp4 tests
+ *****************************************************************************
+ * Copyright (C) 2026 VideoLabs, VLC authors and VideoLAN
+ *
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as published by
+ * the Free Software Foundation; either version 2.1 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
+ *****************************************************************************/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+#include <vlc/vlc.h>
+#include "../../../lib/libvlc_internal.h"
+#include "../../libvlc/test.h"
+
+#include <vlc_common.h>
+#include <vlc_block.h>
+#include <vlc_stream.h>
+
+#define MODULE_STRING "test_demux_libmp4"
+
+#include "../../../modules/demux/mp4/libmp4.h"
+
+#define EXPECT(a) do {\
+ if(!(a)) { \
+ fprintf(stderr, "failed line %d\n", __LINE__); \
+ goto failed; } \
+ } while(0)
+
+const char vlc_module_name[] = MODULE_STRING;
+
+static MP4_Box_t * BoxAddChild( MP4_Box_t *p_parent, MP4_Box_t *p_childbox )
+{
+ if( !p_childbox )
+ return NULL;
+ if( !p_parent->p_first )
+ p_parent->p_first = p_childbox;
+ else
+ p_parent->p_last->p_next = p_childbox;
+ p_parent->p_last = p_childbox;
+ p_childbox->p_father = p_parent;
+ return p_childbox;
+}
+
+static MP4_Box_t *newBox(const char x[4])
+{
+ return MP4_BoxNew(VLC_FOURCC(x[0],x[1],x[2],x[3]));
+}
+
+static MP4_Box_t *generate_mp4_tree()
+{
+ MP4_Box_t *root = NULL, *moov, *trak, *mdia, *stbl;
+
+ if (!(root = newBox("root")))
+ goto failed;
+
+ if (!BoxAddChild(root, newBox("ftyp")))
+ goto failed;
+
+ if (!(moov = BoxAddChild(root, newBox("moov"))))
+ goto failed;
+
+ if (!(trak = BoxAddChild(moov, newBox("trak"))))
+ goto failed;
+
+ if (!(mdia = BoxAddChild(trak, newBox("mdia"))))
+ goto failed;
+
+ if (!(mdia = BoxAddChild(mdia, newBox("minf"))))
+ goto failed;
+
+ if (!(stbl = BoxAddChild(mdia, newBox("stbl"))))
+ goto failed;
+
+ if (!BoxAddChild(stbl, newBox("stsd")))
+ goto failed;
+ if (!BoxAddChild(stbl, newBox("stts")))
+ goto failed;
+ if (!BoxAddChild(stbl, newBox("stsz")))
+ goto failed;
+ if (!BoxAddChild(stbl, newBox("stco")))
+ goto failed;
+
+ if (!(trak = BoxAddChild(moov, newBox("trak"))))
+ goto failed;
+ trak->i_pos = 1;
+
+ BoxAddChild(root, newBox("mdat"));
+
+ return root;
+
+failed:
+ MP4_BoxFree(root);
+ return NULL;
+}
+
+static int check_MP4_BoxGet()
+{
+ MP4_Box_t *extracted = NULL;
+ MP4_Box_t *root = generate_mp4_tree();
+ if(!root)
+ return 1;
+
+ MP4_Box_t *box;
+ EXPECT(MP4_BoxGet(root, ".") == root);
+ EXPECT(MP4_BoxGet(NULL, ".") == NULL);
+
+ box = MP4_BoxGet(root, "/moov");
+ EXPECT(box);
+ EXPECT(box->i_type == ATOM_moov);
+ EXPECT(MP4_BoxGet(root, "moov") == box);
+
+ box = MP4_BoxGet(root, "moov/trak/mdia/minf/stbl/stsd");
+ EXPECT(box);
+ EXPECT(box->i_type == ATOM_stsd);
+
+ box = MP4_BoxGet(box, ".././stts");
+ EXPECT(box);
+ EXPECT(box->i_type == ATOM_stts);
+
+ box = MP4_BoxGet(root, "moov/trak[0]/mdia/minf/stbl/stsd");
+ EXPECT(box);
+ EXPECT(box->i_type == ATOM_stsd);
+
+ box = MP4_BoxGet(root, "moov/trak[1]/mdia/minf/stbl/stsd");
+ EXPECT(!box);
+ box = MP4_BoxGet(root, "moov/trak[1]");
+ EXPECT(box);
+ EXPECT(box->i_type == ATOM_trak);
+ EXPECT(box->i_pos == 1);
+
+ EXPECT(MP4_BoxCount(root, "moov/zzzz") == 0);
+ EXPECT(MP4_BoxCount(root, "moov") == 1);
+ EXPECT(MP4_BoxCount(root, "moov/trak") == 2);
+
+ box = MP4_BoxGet(root, "ftyp");
+ EXPECT(box);
+ extracted = MP4_BoxExtract(&box, ATOM_mdat);
+ EXPECT(extracted);
+ EXPECT(extracted->i_type == ATOM_mdat);
+ EXPECT(MP4_BoxCount(extracted, ".") == 1);
+ MP4_BoxFree(extracted);
+
+ MP4_BoxFree(root);
+
+ return 0;
+
+failed:
+ MP4_BoxFree(root);
+ MP4_BoxFree(extracted);
+ return 1;
+}
+
+/*
++ ftyp size 28 offset 0
++ free size 8 offset 28
++ mdat size 1556 offset 36
++ moov size 794 offset 1592
+| + mvhd size 108 offset 1600
+| + trak size 581 offset 1708
+| | + tkhd size 92 offset 1716
+| | + edts size 36 offset 1808
+| | | + elst size 28 offset 1816
+| | + mdia size 445 offset 1844
+| | | + mdhd size 32 offset 1852
+| | | + hdlr size 45 offset 1884
+| | | + minf size 360 offset 1929
+| | | | + smhd size 16 offset 1937
+| | | | + dinf size 36 offset 1953
+| | | | | + dref size 28 offset 1961
+| | | | | | + url size 12 offset 1977
+| | | | + stbl size 300 offset 1989
+| | | | | + stsd size 126 offset 1997
+| | | | | | + mp4a size 110 offset 2013
+| | | | | | | + esds size 54 offset 2049
+| | | | | | | + btrt size 20 offset 2103
+| | | | | + stts size 32 offset 2123
+| | | | | + stsc size 28 offset 2155
+| | | | | + stsz size 32 offset 2183
+| | | | | + stco size 20 offset 2215
+| | | | | + sgpd size 26 offset 2235
+| | | | | + sbgp size 28 offset 2261
+| + udta size 97 offset 2289
+| | + meta size 89 offset 2297
+| | | + hdlr size 33 offset 2309
+| | | + ilst size 44 offset 2342
+| | | | + ctoo size 36 offset 2350
+| | | | | + data size 28 offset 2358
+*/
+
+static const unsigned char mp4_slowstart[] = {
+ 0x00, 0x00, 0x00, 0x1c, 0x66, 0x74, 0x79, 0x70, 0x69, 0x73, 0x6f, 0x6d,
+ 0x00, 0x00, 0x02, 0x00, 0x69, 0x73, 0x6f, 0x6d, 0x69, 0x73, 0x6f, 0x32,
+ 0x6d, 0x70, 0x34, 0x31, 0x00, 0x00, 0x00, 0x08, 0x66, 0x72, 0x65, 0x65,
+ 0x00, 0x00, 0x06, 0x14, 0x6d, 0x64, 0x61, 0x74, 0xde, 0x02, 0x00, 0x4c,
+ 0x61, 0x76, 0x63, 0x36, 0x31, 0x2e, 0x31, 0x39, 0x2e, 0x31, 0x30, 0x31,
+ 0x00, 0x02, 0x30, 0xa8, 0x59, 0x59, 0x70, 0x4b, 0x1c, 0x29, 0x87, 0x41,
+ 0x41, 0x58, 0x5e, 0x35, 0x79, 0x51, 0xbd, 0x69, 0x64, 0x93, 0x7c, 0xe5,
+ 0xdd, 0xe5, 0xdd, 0x71, 0xdc, 0xda, 0x6b, 0x71, 0xaf, 0xff, 0x8c, 0x7e,
+ 0x84, 0x85, 0xd7, 0xb2, 0x95, 0x10, 0x0a, 0xd8, 0x64, 0x0e, 0xca, 0x24,
+ 0x3f, 0x4f, 0x43, 0x21, 0x8b, 0x07, 0xba, 0xc3, 0x43, 0x83, 0x60, 0x55,
+ 0x72, 0x05, 0x57, 0x54, 0x76, 0x5a, 0x27, 0x5b, 0x81, 0xd6, 0x71, 0xd7,
+ 0x72, 0x36, 0x4c, 0x80, 0x9d, 0x62, 0x5c, 0x96, 0x75, 0x9d, 0xfa, 0x87,
+ 0xa9, 0x62, 0x5c, 0x8c, 0x14, 0xf3, 0x5f, 0x11, 0xb0, 0xf3, 0x1e, 0xcc,
+ 0xfa, 0x64, 0xbf, 0xb4, 0xf3, 0xaa, 0x4b, 0x96, 0x79, 0x17, 0xfe, 0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 0xe9, 0x93, 0xd2,
+ 0x00, 0x01, 0x2a, 0xa8, 0x91, 0xd2, 0x00, 0x01, 0xdf, 0xf5, 0x28, 0x00,
+ 0x00, 0x30, 0x63, 0xca, 0xe3, 0x00, 0x00, 0x22, 0x42, 0x56, 0x80, 0x00,
+ 0x00, 0xc7, 0xc6, 0xc1, 0x50, 0x00, 0x01, 0x2e, 0x10, 0x91, 0x8f, 0x6f,
+ 0x84, 0x8a, 0xca, 0x00, 0x00, 0x00, 0x01, 0x83, 0x36, 0x83, 0x49, 0x17,
+ 0x3a, 0xd0, 0x58, 0x00, 0x00, 0x00, 0x07, 0xb1, 0x5a, 0x22, 0xfd, 0x65,
+ 0x9c, 0x90, 0x00, 0x00, 0x00, 0x02, 0x20, 0x2c, 0xa0, 0x5a, 0x0c, 0x77,
+ 0x69, 0x00, 0x00, 0x00, 0x00, 0x09, 0x51, 0xc6, 0x93, 0x89, 0x1c, 0x8d,
+ 0x35, 0x92, 0x0c, 0x2a, 0xc9, 0xe4, 0x55, 0x08, 0x00, 0x00, 0x00, 0x00,
+ 0x00, 0x00, 0x80, 0x88, 0x4a, 0x01, 0xf2, 0x0b, 0xa5, 0x45, 0x92, 0x6a,
+ 0xe5, 0x14, 0xcb, 0x27, 0x24, 0x11, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0x00, 0x00, 0x13, 0x99, 0x10, 0x8e, 0x2b, 0x01, 0x83, 0x61, 0x2c, 0x6c,
+ 0x11, 0x1a, 0xb6, 0xc8, 0x39, 0xa4, 0xaa, 0xce, 0xae, 0x68, 0x11, 0xac,
+ 0x42, 0x52, 0x2b, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0x00, 0x13, 0x41, 0xc8, 0xc8, 0x6e, 0x76, 0x89, 0x41, 0xb4, 0x8b, 0x13,
+ 0x50, 0x07, 0x02, 0x2c, 0x9a, 0x0a, 0x24, 0x1e, 0xec, 0x00, 0x00, 0x00,
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0xc0, 0x00, 0x00, 0x03, 0x1a,
+ 0x6d, 0x6f, 0x6f, 0x76, 0x00, 0x00, 0x00, 0x6c, 0x6d, 0x76, 0x68, 0x64,
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0x00, 0x00, 0x03, 0xe8, 0x00, 0x00, 0x01, 0x01, 0x00, 0x01, 0x00, 0x00,
+ 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00,
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x02, 0x45, 0x74, 0x72, 0x61, 0x6b,
+ 0x00, 0x00, 0x00, 0x5c, 0x74, 0x6b, 0x68, 0x64, 0x00, 0x00, 0x00, 0x03,
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01,
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x01, 0x00, 0x00, 0x00, 0x00,
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x01, 0x00, 0x00, 0x00,
+ 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00,
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x24,
+ 0x65, 0x64, 0x74, 0x73, 0x00, 0x00, 0x00, 0x1c, 0x65, 0x6c, 0x73, 0x74,
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x01, 0x00,
+ 0x00, 0x00, 0x04, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x01, 0xbd,
+ 0x6d, 0x64, 0x69, 0x61, 0x00, 0x00, 0x00, 0x20, 0x6d, 0x64, 0x68, 0x64,
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0x00, 0x00, 0x1c, 0xb6, 0x00, 0x00, 0x0b, 0x5a, 0x55, 0xc4, 0x00, 0x00,
+ 0x00, 0x00, 0x00, 0x2d, 0x68, 0x64, 0x6c, 0x72, 0x00, 0x00, 0x00, 0x00,
+ 0x00, 0x00, 0x00, 0x00, 0x73, 0x6f, 0x75, 0x6e, 0x00, 0x00, 0x00, 0x00,
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x53, 0x6f, 0x75, 0x6e,
+ 0x64, 0x48, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x72, 0x00, 0x00, 0x00, 0x01,
+ 0x68, 0x6d, 0x69, 0x6e, 0x66, 0x00, 0x00, 0x00, 0x10, 0x73, 0x6d, 0x68,
+ 0x64, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0x24, 0x64, 0x69, 0x6e, 0x66, 0x00, 0x00, 0x00, 0x1c, 0x64, 0x72, 0x65,
+ 0x66, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00,
+ 0x0c, 0x75, 0x72, 0x6c, 0x20, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x01,
+ 0x2c, 0x73, 0x74, 0x62, 0x6c, 0x00, 0x00, 0x00, 0x7e, 0x73, 0x74, 0x73,
+ 0x64, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00,
+ 0x6e, 0x6d, 0x70, 0x34, 0x61, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00,
+ 0x10, 0x00, 0x00, 0x00, 0x00, 0x1c, 0xb6, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0x36, 0x65, 0x73, 0x64, 0x73, 0x00, 0x00, 0x00, 0x00, 0x03, 0x80, 0x80,
+ 0x80, 0x25, 0x00, 0x01, 0x00, 0x04, 0x80, 0x80, 0x80, 0x17, 0x40, 0x15,
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0xac, 0x44, 0x00, 0x00, 0x7a, 0x5a, 0x05,
+ 0x80, 0x80, 0x80, 0x05, 0x16, 0x08, 0x56, 0xe5, 0x00, 0x06, 0x80, 0x80,
+ 0x80, 0x01, 0x02, 0x00, 0x00, 0x00, 0x14, 0x62, 0x74, 0x72, 0x74, 0x00,
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0xac, 0x44, 0x00, 0x00, 0x7a, 0x5a, 0x00,
+ 0x00, 0x00, 0x20, 0x73, 0x74, 0x74, 0x73, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x04, 0x00, 0x00,
+ 0x00, 0x00, 0x01, 0x00, 0x00, 0x03, 0x5a, 0x00, 0x00, 0x00, 0x1c, 0x73,
+ 0x74, 0x73, 0x63, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00,
+ 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x01, 0x00,
+ 0x00, 0x00, 0x20, 0x73, 0x74, 0x73, 0x7a, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x02, 0x3b, 0x00,
+ 0x00, 0x02, 0x04, 0x00, 0x00, 0x01, 0xcd, 0x00, 0x00, 0x00, 0x14, 0x73,
+ 0x74, 0x63, 0x6f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00,
+ 0x00, 0x00, 0x2c, 0x00, 0x00, 0x00, 0x1a, 0x73, 0x67, 0x70, 0x64, 0x01,
+ 0x00, 0x00, 0x00, 0x72, 0x6f, 0x6c, 0x6c, 0x00, 0x00, 0x00, 0x02, 0x00,
+ 0x00, 0x00, 0x01, 0xff, 0xff, 0x00, 0x00, 0x00, 0x1c, 0x73, 0x62, 0x67,
+ 0x70, 0x00, 0x00, 0x00, 0x00, 0x72, 0x6f, 0x6c, 0x6c, 0x00, 0x00, 0x00,
+ 0x01, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00,
+ 0x61, 0x75, 0x64, 0x74, 0x61, 0x00, 0x00, 0x00, 0x59, 0x6d, 0x65, 0x74,
+ 0x61, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x21, 0x68, 0x64, 0x6c,
+ 0x72, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x6d, 0x64, 0x69,
+ 0x72, 0x61, 0x70, 0x70, 0x6c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0x2c, 0x69, 0x6c, 0x73, 0x74, 0x00, 0x00,
+ 0x00, 0x24, 0xa9, 0x74, 0x6f, 0x6f, 0x00, 0x00, 0x00, 0x1c, 0x64, 0x61,
+ 0x74, 0x61, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x4c, 0x61,
+ 0x76, 0x66, 0x36, 0x31, 0x2e, 0x37, 0x2e, 0x31, 0x30, 0x30
+};
+static const unsigned int mp4_slowstart_len = 2386;
+
+static int check_MP4_Box(vlc_object_t *obj)
+{
+ stream_t *stream = vlc_stream_MemoryNew(obj, (uint8_t *)mp4_slowstart,
mp4_slowstart_len, true);
+ if(!stream)
+ return 1;
+ MP4_Box_t *root = MP4_BoxGetRoot(stream);
+ vlc_stream_Delete(stream);
+
+ EXPECT(root);
+
+ MP4_BoxDumpStructure(obj, root);
+
+ const MP4_Box_t *box = MP4_BoxGet(root, "moov/trak/mdia/minf/stbl/stsd");
+ EXPECT(box);
+ EXPECT(box->i_type == ATOM_stsd);
+
+ MP4_BoxFree(root);
+ return 0;
+
+failed:
+ MP4_BoxFree(root);
+ return 1;
+}
+
+/*
++ ftyp size 24 offset 0
++ moov size 700 offset 24
+| + mvhd size 108 offset 32
+| + trak size 447 offset 140
+| | + tkhd size 92 offset 148
+| | + mdia size 347 offset 240
+| | | + mdhd size 32 offset 248
+| | | + hdlr size 45 offset 280
+| | | + minf size 262 offset 325
+| | | | + smhd size 16 offset 333
+| | | | + dinf size 36 offset 349
+| | | | | + dref size 28 offset 357
+| | | | | | + url size 12 offset 373
+| | | | + stbl size 202 offset 385
+| | | | | + stsd size 126 offset 393
+| | | | | | + mp4a size 110 offset 409
+| | | | | | | + esds size 54 offset 445
+| | | | | | | + btrt size 20 offset 499
+| | | | | + stts size 16 offset 519
+| | | | | + stsc size 16 offset 535
+| | | | | + stsz size 20 offset 551
+| | | | | + stco size 16 offset 571
+| + mvex size 40 offset 587
+| | + trex size 32 offset 595
+| + udta size 97 offset 627
+| | + meta size 89 offset 635
+| | | + hdlr size 33 offset 647
+| | | + ilst size 44 offset 680
+| | | | + ctoo size 36 offset 688
+| | | | | + data size 28 offset 696
+*/
+
+static const unsigned char mp4_frag[] = {
+ 0x00, 0x00, 0x00, 0x18, 0x66, 0x74, 0x79, 0x70, 0x69, 0x73, 0x6f, 0x36,
+ 0x00, 0x00, 0x02, 0x00, 0x69, 0x73, 0x6f, 0x36, 0x6d, 0x70, 0x34, 0x31,
+ 0x00, 0x00, 0x02, 0xbc, 0x6d, 0x6f, 0x6f, 0x76, 0x00, 0x00, 0x00, 0x6c,
+ 0x6d, 0x76, 0x68, 0x64, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0xe8, 0x00, 0x00, 0x00, 0x00,
+ 0x00, 0x01, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00,
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x01, 0xbf,
+ 0x74, 0x72, 0x61, 0x6b, 0x00, 0x00, 0x00, 0x5c, 0x74, 0x6b, 0x68, 0x64,
+ 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01,
+ 0x01, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00,
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0x00, 0x00, 0x01, 0x5b, 0x6d, 0x64, 0x69, 0x61, 0x00, 0x00, 0x00, 0x20,
+ 0x6d, 0x64, 0x68, 0x64, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1c, 0xb6, 0x00, 0x00, 0x00, 0x00,
+ 0x55, 0xc4, 0x00, 0x00, 0x00, 0x00, 0x00, 0x2d, 0x68, 0x64, 0x6c, 0x72,
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x73, 0x6f, 0x75, 0x6e,
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0x53, 0x6f, 0x75, 0x6e, 0x64, 0x48, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x72,
+ 0x00, 0x00, 0x00, 0x01, 0x06, 0x6d, 0x69, 0x6e, 0x66, 0x00, 0x00, 0x00,
+ 0x10, 0x73, 0x6d, 0x68, 0x64, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0x00, 0x00, 0x00, 0x00, 0x24, 0x64, 0x69, 0x6e, 0x66, 0x00, 0x00, 0x00,
+ 0x1c, 0x64, 0x72, 0x65, 0x66, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0x01, 0x00, 0x00, 0x00, 0x0c, 0x75, 0x72, 0x6c, 0x20, 0x00, 0x00, 0x00,
+ 0x01, 0x00, 0x00, 0x00, 0xca, 0x73, 0x74, 0x62, 0x6c, 0x00, 0x00, 0x00,
+ 0x7e, 0x73, 0x74, 0x73, 0x64, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0x01, 0x00, 0x00, 0x00, 0x6e, 0x6d, 0x70, 0x34, 0x61, 0x00, 0x00, 0x00,
+ 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0x00, 0x00, 0x01, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x1c, 0xb6, 0x00,
+ 0x00, 0x00, 0x00, 0x00, 0x36, 0x65, 0x73, 0x64, 0x73, 0x00, 0x00, 0x00,
+ 0x00, 0x03, 0x80, 0x80, 0x80, 0x25, 0x00, 0x01, 0x00, 0x04, 0x80, 0x80,
+ 0x80, 0x17, 0x40, 0x15, 0x00, 0x00, 0x00, 0x00, 0x00, 0xac, 0x44, 0x00,
+ 0x00, 0xac, 0x44, 0x05, 0x80, 0x80, 0x80, 0x05, 0x16, 0x08, 0x56, 0xe5,
+ 0x00, 0x06, 0x80, 0x80, 0x80, 0x01, 0x02, 0x00, 0x00, 0x00, 0x14, 0x62,
+ 0x74, 0x72, 0x74, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xac, 0x44, 0x00,
+ 0x00, 0xac, 0x44, 0x00, 0x00, 0x00, 0x10, 0x73, 0x74, 0x74, 0x73, 0x00,
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x73,
+ 0x74, 0x73, 0x63, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0x00, 0x00, 0x14, 0x73, 0x74, 0x73, 0x7a, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x73,
+ 0x74, 0x63, 0x6f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0x00, 0x00, 0x28, 0x6d, 0x76, 0x65, 0x78, 0x00, 0x00, 0x00, 0x20, 0x74,
+ 0x72, 0x65, 0x78, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00,
+ 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x61, 0x75, 0x64, 0x74, 0x61, 0x00,
+ 0x00, 0x00, 0x59, 0x6d, 0x65, 0x74, 0x61, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0x00, 0x00, 0x21, 0x68, 0x64, 0x6c, 0x72, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0x00, 0x00, 0x00, 0x6d, 0x64, 0x69, 0x72, 0x61, 0x70, 0x70, 0x6c, 0x00,
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x2c,
+ 0x69, 0x6c, 0x73, 0x74, 0x00, 0x00, 0x00, 0x24, 0xa9, 0x74, 0x6f, 0x6f,
+ 0x00, 0x00, 0x00, 0x1c, 0x64, 0x61, 0x74, 0x61, 0x00, 0x00, 0x00, 0x01,
+ 0x00, 0x00, 0x00, 0x00, 0x4c, 0x61, 0x76, 0x66, 0x36, 0x31, 0x2e, 0x37,
+ 0x2e, 0x31, 0x30, 0x30, 0x00, 0x00, 0x00, 0x64, 0x6d, 0x6f, 0x6f, 0x66,
+ 0x00, 0x00, 0x00, 0x10, 0x6d, 0x66, 0x68, 0x64, 0x00, 0x00, 0x00, 0x00,
+ 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x4c, 0x74, 0x72, 0x61, 0x66,
+ 0x00, 0x00, 0x00, 0x1c, 0x74, 0x66, 0x68, 0x64, 0x00, 0x02, 0x00, 0x38,
+ 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x02, 0x3b,
+ 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x14, 0x74, 0x66, 0x64, 0x74,
+ 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0x00, 0x00, 0x00, 0x14, 0x74, 0x72, 0x75, 0x6e, 0x01, 0x00, 0x00, 0x01,
+ 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x6c, 0x00, 0x00, 0x02, 0x43,
+ 0x6d, 0x64, 0x61, 0x74, 0xde, 0x02, 0x00, 0x4c, 0x61, 0x76, 0x63, 0x36,
+ 0x31, 0x2e, 0x31, 0x39, 0x2e, 0x31, 0x30, 0x31, 0x00, 0x02, 0x30, 0xa8,
+ 0x59, 0x59, 0x70, 0x4b, 0x1c, 0x29, 0x87, 0x41, 0x41, 0x58, 0x5e, 0x35,
+ 0x79, 0x51, 0xbd, 0x69, 0x64, 0x93, 0x7c, 0xe5, 0xdd, 0xe5, 0xdd, 0x71,
+ 0xdc, 0xda, 0x6b, 0x71, 0xaf, 0xff, 0x8c, 0x7e, 0x84, 0x85, 0xd7, 0xb2,
+ 0x95, 0x10, 0x0a, 0xd8, 0x64, 0x0e, 0xca, 0x24, 0x3f, 0x4f, 0x43, 0x21,
+ 0x8b, 0x07, 0xba, 0xc3, 0x43, 0x83, 0x60, 0x55, 0x72, 0x05, 0x57, 0x54,
+ 0x76, 0x5a, 0x27, 0x5b, 0x81, 0xd6, 0x71, 0xd7, 0x72, 0x36, 0x4c, 0x80,
+ 0x9d, 0x62, 0x5c, 0x96, 0x75, 0x9d, 0xfa, 0x87, 0xa9, 0x62, 0x5c, 0x8c,
+ 0x14, 0xf3, 0x5f, 0x11, 0xb0, 0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e2, 0x73, 0xed, 0x00, 0x38, 0xf0, 0x8e, 0x3a, 0x24,
+ 0x99, 0x6b, 0x5d, 0xfb, 0xa2, 0x66, 0xcf, 0x30, 0xf6, 0x99, 0x7c, 0x00,
+ 0x00, 0x00, 0x64, 0x6d, 0x6f, 0x6f, 0x66, 0x00, 0x00, 0x00, 0x10, 0x6d,
+ 0x66, 0x68, 0x64, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00,
+ 0x00, 0x00, 0x4c, 0x74, 0x72, 0x61, 0x66, 0x00, 0x00, 0x00, 0x1c, 0x74,
+ 0x66, 0x68, 0x64, 0x00, 0x02, 0x00, 0x38, 0x00, 0x00, 0x00, 0x01, 0x00,
+ 0x00, 0x03, 0x5a, 0x00, 0x00, 0x01, 0xcd, 0x02, 0x00, 0x00, 0x00, 0x00,
+ 0x00, 0x00, 0x14, 0x74, 0x66, 0x64, 0x74, 0x01, 0x00, 0x00, 0x00, 0x00,
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x14, 0x74,
+ 0x72, 0x75, 0x6e, 0x01, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x01, 0x00,
+ 0x00, 0x00, 0x6c, 0x00, 0x00, 0x01, 0xd5, 0x6d, 0x64, 0x61, 0x74, 0x01,
+ 0x18, 0x9f, 0xb6, 0xe3, 0x2b, 0xe6, 0x0d, 0xfe, 0x43, 0xf2, 0x7d, 0xdf,
+ 0x69, 0xf5, 0x3f, 0x27, 0xdc, 0x7e, 0x23, 0x7a, 0x15, 0xf3, 0x9f, 0xab,
+ 0xf1, 0x82, 0x4e, 0x27, 0x28, 0x58, 0x56, 0x60, 0x2d, 0xd0, 0xf0, 0x17,
+ 0xf4, 0xe4, 0xfa, 0x48, 0x2b, 0xbd, 0x94, 0x0d, 0xf6, 0x87, 0xf0, 0x1d,
+ 0xe3, 0x07, 0x90, 0x1d, 0x65, 0x78, 0x3e, 0x64,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 0x11, 0xac, 0x42, 0x52, 0x2b, 0x00,
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x13, 0x41, 0xc8,
+ 0xc8, 0x6e, 0x76, 0x89, 0x41, 0xb4, 0x8b, 0x13, 0x50, 0x07, 0x02, 0x2c,
+ 0x9a, 0x0a, 0x24, 0x1e, 0xec, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0x00, 0x00, 0x01, 0xc0, 0x00, 0x00, 0x00, 0x69, 0x6d, 0x66, 0x72, 0x61,
+ 0x00, 0x00, 0x00, 0x51, 0x74, 0x66, 0x72, 0x61, 0x01, 0x00, 0x00, 0x00,
+ 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03,
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0x00, 0x00, 0x02, 0xd4, 0x01, 0x01, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x05, 0x7b, 0x01,
+ 0x01, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00,
+ 0x00, 0x00, 0x00, 0x00, 0x07, 0xeb, 0x01, 0x01, 0x01, 0x00, 0x00, 0x00,
+ 0x10, 0x6d, 0x66, 0x72, 0x6f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0x69
+};
+static const unsigned int mp4_frag_len = 2701;
+
+static int check_MP4_Frag(vlc_object_t *obj)
+{
+ stream_t *stream = vlc_stream_MemoryNew(obj, (uint8_t *)mp4_frag,
mp4_frag_len, true);
+ if(!stream)
+ return 1;
+ MP4_Box_t *root = MP4_BoxGetRoot(stream);
+ vlc_stream_Delete(stream);
+
+ EXPECT(root);
+
+ MP4_BoxDumpStructure(obj, root);
+
+ const MP4_Box_t *box = MP4_BoxGet(root, "moov/trak/mdia/minf/stbl/stsd");
+ EXPECT(box);
+ EXPECT(box->i_type == ATOM_stsd);
+
+ MP4_BoxFree(root);
+ return 0;
+
+failed:
+ MP4_BoxFree(root);
+ return 1;
+}
+
+int main(void)
+{
+ test_init();
+
+ const char * const args[] = {
+ "-vvv",
+ };
+
+ libvlc_instance_t *vlc = libvlc_new(ARRAY_SIZE(args), args);
+ if(!vlc)
+ return 1;
+
+ int ret = check_MP4_BoxGet();
+
+ if( !ret )
+ ret = check_MP4_Box(&vlc->p_libvlc_int->obj);
+
+ if( !ret )
+ ret = check_MP4_Frag(&vlc->p_libvlc_int->obj);
+
+ libvlc_release(vlc);
+ return ret;
+}
=====================================
test/modules/meson.build
=====================================
@@ -75,6 +75,13 @@ vlc_tests += {
}
endif
+vlc_tests += {
+ 'name' : 'test_modules_demux_libmp4',
+ 'sources' : files('demux/libmp4.c'),
+ 'suite' : ['modules', 'test_modules']
+ 'link_with' : [libvlc, libvlccore],
+}
+
vlc_tests += {
'name' : 'test_modules_demux_timestamps',
'sources' : files('demux/timestamps.c'),
View it on GitLab:
https://code.videolan.org/videolan/vlc/-/compare/91b5d272c757cd30954ff03e586a2b9954b67b7c...b0bb49f148fc693227e915d15e2d7056a1a35b4e
--
View it on GitLab:
https://code.videolan.org/videolan/vlc/-/compare/91b5d272c757cd30954ff03e586a2b9954b67b7c...b0bb49f148fc693227e915d15e2d7056a1a35b4e
You're receiving this email because of your account on code.videolan.org.
VideoLAN code repository instance_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits