[FFmpeg-cvslog] avformat/img2dec: improve xbm probing
Paul B Mahol
git at videolan.org
Fri Feb 5 23:39:34 EET 2021
ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Fri Feb 5 22:33:32 2021 +0100| [e28b6e04480fc6d2ec9a6a65e84c204c029bd15b] | committer: Paul B Mahol
avformat/img2dec: improve xbm probing
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=e28b6e04480fc6d2ec9a6a65e84c204c029bd15b
---
libavformat/img2dec.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/libavformat/img2dec.c b/libavformat/img2dec.c
index dcf07a69bc..d10ba4ca40 100644
--- a/libavformat/img2dec.c
+++ b/libavformat/img2dec.c
@@ -1033,6 +1033,9 @@ static int pam_probe(const AVProbeData *p)
static int xbm_probe(const AVProbeData *p)
{
+ if (!memcmp(p->buf, "/* XBM X10 format */", 20))
+ return AVPROBE_SCORE_MAX;
+
if (!memcmp(p->buf, "#define", 7))
return AVPROBE_SCORE_MAX - 1;
return 0;
More information about the ffmpeg-cvslog
mailing list