From b47396b6143c3ccdc1bd40e3d6ca6147a9cceb17 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Wed, 10 Oct 2012 21:40:03 +0200 Subject: [PATCH] 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 --- libavformat/img2dec.c | 2 ++ 1 file changed, 2 insertions(+) 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; }