[vlc-devel] [PATCH 07/10] demux/image.c: Detect SVG Scalable Vector Graphics Images
Jean-Paul Saman
jpsaman at videolan.org
Wed May 14 09:31:20 CEST 2014
On Tue, May 13, 2014 at 3:54 PM, Francois Cartegnie <fcvlcdev at free.fr>wrote:
> Le 12/05/2014 12:04, jpsaman at videolan.org a écrit :
> > + const char endxml[] = ">\0";
> > + if (!FindSVGmarker(&position, header, size, endxml))
> > + return false;
> > + if (position <= 15)
> > + return false;
>
> Can't happen
>
> > + const char svg[] = "<svg";
>
> Should match
> "<svg " "<svg>" "<svg:"
>
> Francois
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> https://mailman.videolan.org/listinfo/vlc-devel
>
I used the same detection conditions that the bash command file
(/usr/share/file/magic) uses to indentify a SVG file.
Any improvements are welcome.
Kind regards,
Jean-Paul Saman.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20140514/d81d213d/attachment.html>
More information about the vlc-devel
mailing list