changeset 320:4b01f2d7a90c libavformat

Patch for PPM probing by (Rob Joyce <rjoyce at twcny dot rr dot com>)
author michael
date Mon, 24 Nov 2003 17:59:56 +0000
parents 6285d395baf4
children 5cb0e4cdb864
files pnm.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/pnm.c	Thu Nov 20 11:22:25 2003 +0000
+++ b/pnm.c	Mon Nov 24 17:59:56 2003 +0000
@@ -394,7 +394,7 @@
     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;