Commit f688f285 authored by michael's avatar michael

Patch for PPM probing by (Rob Joyce <rjoyce at twcny dot rr dot com>)


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@2528 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 2225b3ba
...@@ -394,7 +394,7 @@ static int pnm_probe(AVProbeData *pd) ...@@ -394,7 +394,7 @@ static int pnm_probe(AVProbeData *pd)
if (pd->buf_size >= 8 && if (pd->buf_size >= 8 &&
p[0] == 'P' && p[0] == 'P' &&
p[1] >= '4' && p[1] <= '6' && p[1] >= '4' && p[1] <= '6' &&
p[2] == '\n') pnm_space(p[2]) )
return AVPROBE_SCORE_MAX - 1; /* to permit pgmyuv probe */ return AVPROBE_SCORE_MAX - 1; /* to permit pgmyuv probe */
else else
return 0; return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment