[FFmpeg-devel] [PATCH] reduce score returned by FLIC format

Aurelien Jacobs aurel
Tue Mar 25 22:42:00 CET 2008


Mike Melanson wrote:

> 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.

That would for sure be better.

> The first 4 bytes of the file should match the total size of the file.

But you can't check this unless the stream is seekable.

> The width and height could also be sanity-checked (this is part of
> how the id CIN demuxer detects a file).

This might be enough...

Still this test would be a bit week, and maybe it would be better to
make it return 9*AVPROBE_SCORE_MAX/10 or something like that.

Aurel




More information about the ffmpeg-devel mailing list