[MPlayer-dev-eng] [PATCH] better detection of ASS comas number

Aurelien Jacobs aurel at gnuage.org
Wed Dec 29 01:37:44 CET 2010


Hi,

Currently, when parsing an ASS file without using libass, MPlayer is
wild-guessing the number of comas before the Text field of dialog events
lines, just hopping that it is the most commonly used one without really
checking.
Attached patch adds some real auto-detection of the comas number by
counting the number of comas in the "Format:" line of extradata.
If no extradata is present or auto-detection don't work, it fallback on
the previously used wild-guessing.

Aurel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ass_commas.diff
Type: text/x-diff
Size: 1751 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20101229/11434d8f/attachment.diff>


More information about the MPlayer-dev-eng mailing list