aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat
diff options
context:
space:
mode:
authorCarl Eugen Hoyos <ceffmpeg@gmail.com>2021-02-15 00:34:01 +0100
committerCarl Eugen Hoyos <ceffmpeg@gmail.com>2021-02-15 00:34:01 +0100
commitc0d0b1c4f6f804796488adf3e552be88c0cee1a4 (patch)
tree8028f24bef1f2682ac03da683d6dd24f7efd4b87 /libavformat
parent3490108f95b5a350f75df8443b00fbeebcdf068d (diff)
downloadffmpeg-c0d0b1c4f6f804796488adf3e552be88c0cee1a4.tar.gz
lavf/img2dec: Autodetect pfm images.
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/img2dec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/img2dec.c b/libavformat/img2dec.c
index d10ba4ca40..6c78dada8c 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)