[MPlayer-dev-eng] subtitle wrapping

Jindrich Makovicka makovick at kmlinux.fjfi.cvut.cz
Tue Mar 25 21:49:36 CET 2003


Moritz Bunkus wrote:

>Hi.
>
>  
>
>>>Ah, OK... :( Where is the relevant code?
>>>      
>>>
>
>Unfortunately, not only in sub.c but also in demux_ogg.c. And in the
>near future also in demux_mkv.c. MPlayer does not support subs as a
>stream type at the moment, and that makes maintaining correct splitting
>harder (obviously... you have to patch more than one file). I'd be VERY
>happy if someone found the time to rewrite the subtitle support in
>mplayer to be stream-based, just like video and audio are done.
>
>(No, unfortunately I don't have the time to do it on my own - otherwise
>I would have already attempted it :()
>
The code I posted accepts a text string at the input, and returns a list 
of positions where to split so maybe it would be fairly easy to modify 
it so it could be used elsewhere. Anyway here is a bit polished version 
which doesn't waste so much cpu time (the previous patch was terrible 
regarding this).

-- 
Jindrich Makovicka

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: sub.c.diff
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20030325/fc47a844/attachment.txt>


More information about the MPlayer-dev-eng mailing list