[vlc-devel] [vlc-commits] demux: ttml: probe without creating xmlreader

Jean-Baptiste Kempf jb at videolan.org
Wed Oct 7 19:28:02 CEST 2015


On 07 Oct, Francois Cartegnie wrote :
> +    uint8_t *p_peek;
> +    ssize_t i_peek = stream_Peek( p_demux->s, (const uint8_t **) &p_peek, 128 );
> +    if( i_peek < 32 || memcmp( p_peek, "<?xml", 5 ) ||
> +        !strnstr( (const char *) p_peek, "<tt ", i_peek ) )

That matches <tt in the first 128 characters, right?

With my kindest 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