[FFmpeg-devel] [PATCH] Add SUP/PGS subtitle demuxer

Carl Eugen Hoyos cehoyos at ag.or.at
Sun Aug 31 17:06:08 CEST 2014

wm4 <nfxjfg <at> googlemail.com> writes:

> > > +    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).

I have written such a patch some time ago, so you can 
commit with AVPROBE_SCORE_EXTENSION / 2 (or / 4), I 
will try to improve using my older work if you want.
(It was too slow so it has to be changed.)

> Other formats are also relatively lazy

Please point me to such a format, I would like to 
fix it.
EXTENSION is ok for 32 bit, MAX is ok for 64bit.
I think there is one bad example, but I cannot 
find it atm.

Thank you, Carl Eugen

More information about the ffmpeg-devel mailing list