[MPlayer-dev-eng] [PATCH] mencoder output only forced subtitles using -forcedsubsonly

Rob McMullen robm at users.sourceforge.net
Tue Apr 13 00:39:40 CEST 2010


On Mon, Apr 12, 2010 at 11:44 AM, Rob McMullen
<robm at users.sourceforge.net> wrote:
> Here's a patch to get mencoder to honor the -forcedsubsonly command
> line option and will output only the forced subtitles to the .idx/.sub
> file.

Found a bug in this patch where the last subtitle is always included
in the .sub even if it's not forced.

Unless you will allow the use of truncate/ftruncate (which does not
seem to be in use in any part of the code except for what looks like
the objective C code for OS X), I'll have to come up with a new
version of this patch that mallocs some memory and buffers the writes.

Rob



More information about the MPlayer-dev-eng mailing list