[vlc-devel] [PATCH 2/5] libmp4: add two functions for fragmented MP4

Jean-Baptiste Kempf jb at videolan.org
Wed Apr 11 12:50:34 CEST 2012


On Wed, Apr 11, 2012 at 11:40:03AM +0200, Frédéric Yhuel wrote :
> +    p_ftyp = MP4_ReadBox( s, p_chunk );
Can that fail?

> +    enum{ TRIES = 8 };

Sorry ?

> +    p_chunk = calloc( 1, sizeof( MP4_Box_t ) );
> +    p_mdat = calloc( 1, sizeof( MP4_Box_t ) );
Why calloc here and not above?

> +    enum{ TRIES = 8 };

cough...

Best regards,

-- 
Jean-Baptiste Kempf
http://www.jbkempf.com/ - +33 672 704 734
Sent from my Electronic Device



More information about the vlc-devel mailing list