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

Francois Cartegnie fcvlcdev at free.fr
Wed Oct 7 21:17:14 CEST 2015


Le 07/10/2015 19:28, Jean-Baptiste Kempf a écrit :
> 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?

but starting with xml header tag

Francois



More information about the vlc-devel mailing list