[FFmpeg-devel] [PATCH] lavf/img2dec: add ppm pipe demuxer
Clément Bœsch
u at pkh.me
Thu Jun 9 15:59:30 CEST 2016
On Thu, Jun 09, 2016 at 01:35:19PM +0000, Carl Eugen Hoyos wrote:
> 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.
>
Sure. Changed locally, will push soon, thanks.
--
Clément B.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20160609/30d08f9d/attachment.sig>
More information about the ffmpeg-devel
mailing list