mirror of https://git.ffmpeg.org/ffmpeg.git
avformat/img2dec: improve xbm probing
This commit is contained in:
parent
d99cc17825
commit
e28b6e0448
|
@ -1033,6 +1033,9 @@ static int pam_probe(const AVProbeData *p)
|
||||||
|
|
||||||
static int xbm_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))
|
if (!memcmp(p->buf, "#define", 7))
|
||||||
return AVPROBE_SCORE_MAX - 1;
|
return AVPROBE_SCORE_MAX - 1;
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in New Issue