img2dec: detect .raw files only with a low score as img2

They can be many other things and this otherwise breaks probing of some .raw files.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2012-10-10 21:40:03 +02:00
parent 94f5470a20
commit b47396b614
1 changed files with 2 additions and 0 deletions

View File

@ -179,6 +179,8 @@ static int read_probe(AVProbeData *p)
return AVPROBE_SCORE_MAX;
else if (is_glob(p->filename))
return AVPROBE_SCORE_MAX;
else if(av_match_ext(p->filename, "raw"))
return 5;
else
return AVPROBE_SCORE_MAX/2;
}