[FFmpeg-devel] [PATCH] lavf/img2dec: add pnm pipe demuxers

Carl Eugen Hoyos cehoyos at ag.or.at
Mon Jun 20 15:07:09 CEST 2016

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

> +static int pgmyuv_probe(AVProbeData *p)
> +{
> +    int ret = pgmx_probe(p);
> +    return ret && av_match_ext(p->filename, "pgmyuv") ? ret : 0;

You could add a comment that this format was invented within 
FFmpeg, I hadn't realized this.
And you could check for positive resolutions if you want to 
improve probing.

Did you run the probe test for the new functions?

Carl Eugen

More information about the ffmpeg-devel mailing list