diff options
author | Paul B Mahol <onemda@gmail.com> | 2021-02-05 22:33:32 +0100 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2021-02-05 22:37:34 +0100 |
commit | e28b6e04480fc6d2ec9a6a65e84c204c029bd15b (patch) | |
tree | e066261e5c51d4694c7b5a85559b3990c519d41c | |
parent | d99cc1782563672bcdb46fb5ec51135847db8c99 (diff) | |
download | ffmpeg-e28b6e04480fc6d2ec9a6a65e84c204c029bd15b.tar.gz |
avformat/img2dec: improve xbm probing
-rw-r--r-- | libavformat/img2dec.c | 3 |
1 files changed, 3 insertions, 0 deletions
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; |