[vlc-devel] [PATCH 3/3] demux/mp4: Add fragmented MP4 support
Frederic YHUEL
fyhuel at viotech.net
Mon Mar 19 11:42:33 CET 2012
2012/3/16 Frédéric Yhuel <fyhuel at viotech.net>:
>
> +static int fMP4_GetChunks( demux_t *p_demux )
> +{
> + demux_sys_t *p_sys = p_demux->p_sys;
> +
> + for( unsigned i = 0; i < p_sys->i_tracks; i++ )
> + {
> + MP4_Box_t *p_chunk = MP4_BoxGetNextChunk( p_demux->s );
> + if( !p_chunk )
> + return VLC_EGENERIC;
> + if( fMP4_GetChunk( p_demux, p_chunk ) != VLC_SUCCESS )
> + return VLC_EGENERIC;
> + }
> +
> + return VLC_SUCCESS;
> +}
>
Actually this function is not really good:
If we have, say, video fragments whose duration is 2s, and audio
fragments whose duration is 3s, then demux will read more video
fragments (than audio ones) from the stream_filter module.
Other parts of the patch have to be changed as well to fix that issue.
I'm going to work on that but it's not trivial.
--
Frédéric
More information about the vlc-devel
mailing list