summaryrefslogtreecommitdiffstats
path: root/libavformat/img2dec.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-10-10 21:40:03 +0200
committerMichael Niedermayer <michaelni@gmx.at>2012-10-10 21:40:03 +0200
commitb47396b6143c3ccdc1bd40e3d6ca6147a9cceb17 (patch)
tree50cc34d46b65c9f639343c9598a6d641ee616579 /libavformat/img2dec.c
parent94f5470a20d4dfe695953bc43fb9b8a91e1d3c8b (diff)
downloadffmpeg-streaming-b47396b6143c3ccdc1bd40e3d6ca6147a9cceb17.zip
ffmpeg-streaming-b47396b6143c3ccdc1bd40e3d6ca6147a9cceb17.tar.gz
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/img2dec.c')
-rw-r--r--libavformat/img2dec.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/img2dec.c b/libavformat/img2dec.c
index 1190af3..79f10b9 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;
}
OpenPOWER on IntegriCloud