Browse Source

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>
tags/n1.1
Michael Niedermayer 12 years ago
parent
commit
b47396b614
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      libavformat/img2dec.c

+ 2
- 0
libavformat/img2dec.c 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;
}


Loading…
Cancel
Save