diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-10-10 23:40:03 +0400 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-10-10 23:40:03 +0400 |
commit | b47396b6143c3ccdc1bd40e3d6ca6147a9cceb17 (patch) | |
tree | 50cc34d46b65c9f639343c9598a6d641ee616579 /libavformat | |
parent | 94f5470a20d4dfe695953bc43fb9b8a91e1d3c8b (diff) |
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>
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/img2dec.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/img2dec.c b/libavformat/img2dec.c index 1190af30c8..79f10b9f7f 100644 --- a/libavformat/img2dec.c +++ b/libavformat/img2dec.c @@ -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; } |