From 28ba74a68661db860dc6ba68eddf35ea5fa20144 Mon Sep 17 00:00:00 2001
From: Michael Niedermayer <michaelni@gmx.at>
Date: Mon, 24 Nov 2003 17:59:56 +0000
Subject: [PATCH] Patch for PPM probing by (Rob Joyce <rjoyce at twcny dot rr
 dot com>)

Originally committed as revision 2528 to svn://svn.ffmpeg.org/ffmpeg/trunk
---
 libavformat/pnm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/pnm.c b/libavformat/pnm.c
index a831e212d2b..fb4d3d2ad36 100644
--- a/libavformat/pnm.c
+++ b/libavformat/pnm.c
@@ -394,7 +394,7 @@ static int pnm_probe(AVProbeData *pd)
     if (pd->buf_size >= 8 &&
         p[0] == 'P' &&
         p[1] >= '4' && p[1] <= '6' &&
-        p[2] == '\n')
+        pnm_space(p[2]) )
         return AVPROBE_SCORE_MAX - 1; /* to permit pgmyuv probe */
     else
         return 0;
-- 
GitLab