From 44664b0915ac4920943955ef7f5c0ffd5eecbf30 Mon Sep 17 00:00:00 2001 From: Fabrice Bellard Date: Sun, 24 Aug 2003 21:21:10 +0000 Subject: [PATCH] accepts pgmyuv extension Originally committed as revision 2152 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavformat/pnm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libavformat/pnm.c b/libavformat/pnm.c index 2161faf069..a831e212d2 100644 --- a/libavformat/pnm.c +++ b/libavformat/pnm.c @@ -395,7 +395,7 @@ static int pnm_probe(AVProbeData *pd) 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 pam_image_format = { AVImageFormat pgmyuv_image_format = { "pgmyuv", - NULL, + "pgmyuv", pgmyuv_probe, pgmyuv_read, (1 << PIX_FMT_YUV420P),