[FFmpeg-devel] [PATCH]lavf/img2dec: Auto-detect svg images

Carl Eugen Hoyos ceffmpeg at gmail.com
Mon Oct 2 12:51:21 EEST 2017


2017-10-02 11:43 GMT+02:00 wm4 <nfxjfg at googlemail.com>:
> On Mon, 2 Oct 2017 01:20:15 +0200
> Carl Eugen Hoyos <ceffmpeg at gmail.com> wrote:
>
>> Hi!
>>
>> Attached patch implements auto-detection of svg images.
>>
>> Please review, Carl Eugen
>
> That looks like it'd be extremely fragile and react to anything that is
> XML and happens to have the string "svg" and "<!DOCTYPE" on the same
> line in the probe buffer.

Which would most likely be an svg file, no?

> Also nonsensical "b += 9;".

The same memory location could be "DOCTYPE" and "svg" at
the same time?

Anyway, this patch was superseded.

Carl Eugen


More information about the ffmpeg-devel mailing list