[FFmpeg-cvslog] lavf/img2dec: Autodetect pfm images.

Carl Eugen Hoyos git at videolan.org
Mon Feb 15 01:35:26 EET 2021


ffmpeg | branch: master | Carl Eugen Hoyos <ceffmpeg at gmail.com> | Mon Feb 15 00:34:01 2021 +0100| [c0d0b1c4f6f804796488adf3e552be88c0cee1a4] | committer: Carl Eugen Hoyos

lavf/img2dec: Autodetect pfm images.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=c0d0b1c4f6f804796488adf3e552be88c0cee1a4
---

 libavformat/img2dec.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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)



More information about the ffmpeg-cvslog mailing list