1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

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

View File

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