[FFmpeg-devel] [PATCH] Add SUP/PGS subtitle demuxer
Reimar.Doeffinger at gmx.de
Sun Aug 31 14:25:21 CEST 2014
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).
More information about the ffmpeg-devel