# HG changeset patch # User bellard # Date 1061760070 0 # Node ID c0d49b5d246c2e77e0e487facc9bc11899876fbe # Parent 66a05c4f83503a36173aa938bf840a5341523dd9 accepts pgmyuv extension diff -r 66a05c4f8350 -r c0d49b5d246c pnm.c --- 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),