ffmpeg | branch: master | Paul B Mahol <[email protected]> | 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;

_______________________________________________
ffmpeg-cvslog mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".

Reply via email to