1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-01-24 13:56:33 +02:00

accepts pgmyuv extension

Originally committed as revision 2152 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Fabrice Bellard 2003-08-24 21:21:10 +00:00
parent 22b37f5d32
commit 44664b0915

View File

@ -395,7 +395,7 @@ static int pnm_probe(AVProbeData *pd)
p[0] == 'P' && p[0] == 'P' &&
p[1] >= '4' && p[1] <= '6' && p[1] >= '4' && p[1] <= '6' &&
p[2] == '\n') p[2] == '\n')
return AVPROBE_SCORE_MAX; return AVPROBE_SCORE_MAX - 1; /* to permit pgmyuv probe */
else else
return 0; return 0;
} }
@ -468,7 +468,7 @@ AVImageFormat pam_image_format = {
AVImageFormat pgmyuv_image_format = { AVImageFormat pgmyuv_image_format = {
"pgmyuv", "pgmyuv",
NULL, "pgmyuv",
pgmyuv_probe, pgmyuv_probe,
pgmyuv_read, pgmyuv_read,
(1 << PIX_FMT_YUV420P), (1 << PIX_FMT_YUV420P),