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

Mike Melanson mike
Tue Mar 25 22:49:45 CET 2008


Aurelien Jacobs wrote:
>> 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.

And it also doesn't work for the bastardized FLIC variant found on a
particular game. There are maybe 7 files in existence that depend on
that hack. But one of them is a FATE test, so we can't break it. :)

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

I'll take that into account.

-- 
	-Mike Melanson




More information about the ffmpeg-devel mailing list