changeset 200:c0d49b5d246c libavformat

accepts pgmyuv extension
author bellard
date Sun, 24 Aug 2003 21:21:10 +0000
parents 66a05c4f8350
children 85def00971c3
files pnm.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/pnm.c	Sun Aug 24 21:20:44 2003 +0000
+++ b/pnm.c	Sun Aug 24 21:21:10 2003 +0000
@@ -395,7 +395,7 @@
         p[0] == 'P' &&
         p[1] >= '4' && p[1] <= '6' &&
         p[2] == '\n')
-        return AVPROBE_SCORE_MAX;
+        return AVPROBE_SCORE_MAX - 1; /* to permit pgmyuv probe */
     else
         return 0;
 }
@@ -468,7 +468,7 @@
 
 AVImageFormat pgmyuv_image_format = {
     "pgmyuv",
-    NULL,
+    "pgmyuv",
     pgmyuv_probe,
     pgmyuv_read,
     (1 << PIX_FMT_YUV420P),