OSDN Git Service

Patch for PPM probing by (Rob Joyce <rjoyce at twcny dot rr dot com>)
authorMichael Niedermayer <michaelni@gmx.at>
Mon, 24 Nov 2003 17:59:56 +0000 (17:59 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Mon, 24 Nov 2003 17:59:56 +0000 (17:59 +0000)
Originally committed as revision 2528 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavformat/pnm.c

index a831e21..fb4d3d2 100644 (file)
@@ -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;