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:
parent
94f5470a20
commit
b47396b614
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user