[FFmpeg-cvslog] img2dec: detect .raw files only with a low score as img2
Michael Niedermayer
git at videolan.org
Wed Oct 10 21:48:33 CEST 2012
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Wed Oct 10 21:40:03 2012 +0200| [b47396b6143c3ccdc1bd40e3d6ca6147a9cceb17] | committer: Michael Niedermayer
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 at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=b47396b6143c3ccdc1bd40e3d6ca6147a9cceb17
---
libavformat/img2dec.c | 2 ++
1 file changed, 2 insertions(+)
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;
}
More information about the ffmpeg-cvslog
mailing list