From c0d0b1c4f6f804796488adf3e552be88c0cee1a4 Mon Sep 17 00:00:00 2001 From: Carl Eugen Hoyos Date: Mon, 15 Feb 2021 00:34:01 +0100 Subject: [PATCH] lavf/img2dec: Autodetect pfm images. --- libavformat/img2dec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/img2dec.c b/libavformat/img2dec.c index d10ba4ca405..6c78dada8ce 100644 --- a/libavformat/img2dec.c +++ b/libavformat/img2dec.c @@ -993,7 +993,7 @@ static inline int pnm_probe(const AVProbeData *p) static int pbm_probe(const AVProbeData *p) { - return pnm_magic_check(p, 1) || pnm_magic_check(p, 4) ? pnm_probe(p) : 0; + return pnm_magic_check(p, 1) || pnm_magic_check(p, 4) || pnm_magic_check(p, 22) || pnm_magic_check(p, 54) ? pnm_probe(p) : 0; } static inline int pgmx_probe(const AVProbeData *p) -- 2.39.5