[FFmpeg-devel] [PATCH] lavf/img2dec: add ppm pipe demuxer

Carl Eugen Hoyos cehoyos at ag.or.at
Thu Jun 9 15:35:19 CEST 2016


Clément Bœsch <u <at> pkh.me> writes:

> +            if (b[3] == '#')
> +                return AVPROBE_SCORE_EXTENSION + 1;
> +            if (b[3] >= '0' && b[3] <= '9')
> +                return AVPROBE_SCORE_MAX - 1;

Imo, this should be:
if (b[3] == '#' || (b[3] >= '0' && b[3] <= '9'))
  return AVPROBE_SCORE_EXTENSION + 2;
or similar

I count 37 and 34 bits which is only a little more than 
the usual 32 bit for EXTENSION + 1.

Carl Eugen


More information about the ffmpeg-devel mailing list