Commit ad7f67f3 authored by Francois Cartegnie's avatar Francois Cartegnie

demux: mp4: export ContainerChildren instead of ContainedRaw

So we can stop probing at some point.
parent 1a970471
...@@ -190,8 +190,8 @@ static int MP4_NextBox( stream_t *p_stream, MP4_Box_t *p_box ) ...@@ -190,8 +190,8 @@ static int MP4_NextBox( stream_t *p_stream, MP4_Box_t *p_box )
* after called one of theses functions, file position is unknown * after called one of theses functions, file position is unknown
* you need to call MP4_GotoBox to go where you want * you need to call MP4_GotoBox to go where you want
*****************************************************************************/ *****************************************************************************/
static int MP4_ReadBoxContainerChildren( stream_t *p_stream, int MP4_ReadBoxContainerChildren( stream_t *p_stream,
MP4_Box_t *p_container, uint32_t i_last_child ) MP4_Box_t *p_container, uint32_t i_last_child )
{ {
MP4_Box_t *p_box; MP4_Box_t *p_box;
...@@ -226,7 +226,7 @@ static int MP4_ReadBoxContainerChildren( stream_t *p_stream, ...@@ -226,7 +226,7 @@ static int MP4_ReadBoxContainerChildren( stream_t *p_stream,
return 1; return 1;
} }
int MP4_ReadBoxContainerRaw( stream_t *p_stream, MP4_Box_t *p_container ) static int MP4_ReadBoxContainerRaw( stream_t *p_stream, MP4_Box_t *p_container )
{ {
return MP4_ReadBoxContainerChildren( p_stream, p_container, 0 ); return MP4_ReadBoxContainerChildren( p_stream, p_container, 0 );
} }
......
...@@ -1563,7 +1563,8 @@ int MP4_BoxCount( MP4_Box_t *p_box, const char *psz_fmt, ... ); ...@@ -1563,7 +1563,8 @@ int MP4_BoxCount( MP4_Box_t *p_box, const char *psz_fmt, ... );
/* Internal functions exposed for MKV demux */ /* Internal functions exposed for MKV demux */
int MP4_ReadBoxCommon( stream_t *p_stream, MP4_Box_t *p_box ); int MP4_ReadBoxCommon( stream_t *p_stream, MP4_Box_t *p_box );
int MP4_ReadBoxContainerRaw( stream_t *p_stream, MP4_Box_t *p_container ); int MP4_ReadBoxContainerChildren( stream_t *p_stream, MP4_Box_t *p_container,
uint32_t i_last_child );
int MP4_ReadBox_sample_vide( stream_t *p_stream, MP4_Box_t *p_box ); int MP4_ReadBox_sample_vide( stream_t *p_stream, MP4_Box_t *p_box );
void MP4_FreeBox_sample_vide( MP4_Box_t *p_box ); void MP4_FreeBox_sample_vide( MP4_Box_t *p_box );
......
...@@ -4297,7 +4297,7 @@ static int ProbeFragments( demux_t *p_demux ) ...@@ -4297,7 +4297,7 @@ static int ProbeFragments( demux_t *p_demux )
assert( p_sys->p_root ); assert( p_sys->p_root );
MP4_ReadBoxContainerRaw( p_demux->s, p_sys->p_root ); /* Get the rest of the file */ MP4_ReadBoxContainerChildren( p_demux->s, p_sys->p_root, 0 ); /* Get the rest of the file */
MP4_Box_t *p_moov = MP4_BoxGet( p_sys->p_root, "/moov" ); MP4_Box_t *p_moov = MP4_BoxGet( p_sys->p_root, "/moov" );
if ( !p_moov ) if ( !p_moov )
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment