[MPlayer-dev-eng] [PATCH] S_TEXT/SSA support for Matroska files.

Tristan z80 at oceanfree.net
Tue Sep 9 10:55:38 CEST 2003


I've been lurking on mplayer-dev for some time but never had a chance or
the urge to actually submit something. But after recieving a MKV file
with embedded subs in SSA format, I found that I had a reason to code
something :).

Anyways, attached are two unified diffs of matroska.h and demux_mkv.cpp.
matroska.h was modified to include the S_TEXT/SSA type and demux_mkv.cpp
had several modifications (priv for a flag, type identification, and the
actual decoding). The SSA engine from subreader.c couldn't be used as
there are a few differences between real SSA and MKV SSA.

Things seem to work just fine but I only have one file to test this
patch against so I'm not too positive on the robustness of the code.
Hopefully I got all the 10l bugs :).

- Tristan Willy

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: matroska.h.patch
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20030909/17f92f68/attachment.asc>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: demux_mkv.cpp.patch
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20030909/17f92f68/attachment.txt>


More information about the MPlayer-dev-eng mailing list