[MPlayer-dev-eng] A bit more liberal parsing of tags in .srt files?

Reimar Döffinger Reimar.Doeffinger at gmx.de
Sat Mar 3 14:57:18 CET 2012


On Wed, Feb 22, 2012 at 09:50:42PM +0100, SZOKOVACS Robert wrote:
> On 2012. February 16. Thu 07:39:55 compn wrote:
> > On Thu, 16 Feb 2012 11:13:01 +0100, Szokovacs Robert wrote:
> > >Hi,
> > >
> > >A lot of .srt subtitle files I encounter on the net is deemed incorrect by
> > >the current mplayer, so the <font> tag is displayed as if it was part of
> > >the script.
> > >(example: http://www.tvsubtitles.net/download-204587.html, some color=
> > 
> > i think we shouldnt render any <tag> with < and >.
> > but instead silently drop it.
> > 
> > i dont know whats best re: your idea. better wait for reimar.
> 
> Reimar, would you please give us some pointers?

I guess looking for < followed by a-z and where a > exists before the
next < is about as reliable as you can make it if you want it to
catch every case (well, the tags itself, handling hypothetical stuff
like <comment>everything here should not be shown</comment> is
definitely out of scope for MPlayer IMO.


More information about the MPlayer-dev-eng mailing list