[MPlayer-dev-eng] MKV files and subtitles charset

Diego Biurrun diego at biurrun.de
Mon Aug 14 16:32:03 CEST 2006


On Mon, Aug 14, 2006 at 06:30:42PM +0400, Evgeniy Stepanov wrote:
> On Saturday 05 August 2006 18:19, Evgeniy Stepanov wrote:
> > Recoding is performed by subcp_recode1() call at the end of
> > handle_subtitles(), and it is definitely wrong. Subtitles in matroska are
> > already in utf-8, subcp should be ignored.
> >
> > Further still, subcp_recode1() assumes that sub->text[i] size is
> > ICBUFFSIZE=512, but mkv demuxer allocates 256 bytes only
> > (demux_mkv.c:2406).
> >
> > I suggest removing subcp_recode1() call.
> >
> > There is also a minor bug in handle_subtitles(), read beyond the end of
> > allocated area. Fixed by mkv_fix.patch.
> 
> So, what should be done with this patch ?
> Moritz, your opinion ?

Moritz does not follow the mailing list closely.  I've CCed him in the
hopes that he will answer.

Diego



More information about the MPlayer-dev-eng mailing list