On Sun, Aug 31, 2014 at 01:04:29PM +0200, wm4 wrote:
> +static int sup_probe(AVProbeData *p)
> +{
> + if (p->buf_size < 2 || memcmp(p->buf, "PG", 2))
> + return 0;
> + return AVPROBE_SCORE_EXTENSION;
I understand if you consider it not worth the effort,
but ideally this would scan ahead several packets,
and if it all matches up return a higher score.
The MP3 probe function is possibly a good reference (though
this one should be bit simpler).
_______________________________________________
ffmpeg-devel mailing list
[email protected]
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel