[FFmpeg-devel] [PATCH] reduce score returned by FLIC format
Mike Melanson
mike
Tue Mar 25 17:32:00 CET 2008
Benoit Fouet wrote:
> Hi,
>
> http://www.despatis.com/bug.wav is a wave file detected as a flic video one
> reducing the score returned by flic.c solves the problem, is it ok ?
Seems a bit of a hack. I think a better solution would be to
sanity-check some more header fields. The first 4 bytes of the file
should match the total size of the file. The width and height could also
be sanity-checked (this is part of how the id CIN demuxer detects a file).
Right now, the demuxer has 3 in 65536 chance of qualifying a given file.
That probability should be much lower. Please open an issue and assign
it to me. I think I can cover all the cases.
Thanks...
--
-Mike Melanson
More information about the ffmpeg-devel
mailing list