[MPlayer-dev-eng] [PATCH] dvdsub_id always selectable fix

Ulion ulion2002 at gmail.com
Sat Nov 3 07:53:39 CET 2007


Hello,

I found a bug in mplayer.c about make dvdsub_id always selectable. The
original code must missed mpctx->global_sub_indices[SUB_SOURCE_DEMUX],
here's the fix. I will commit it tomorrow if no objects.

-if (mpctx->global_sub_size <= dvdsub_id) mpctx->global_sub_size =
dvdsub_id + 1;
+// Make dvdsub_id always selectable if set.
+if (mpctx->global_sub_size <=
mpctx->global_sub_indices[SUB_SOURCE_DEMUX] + dvdsub_id)
+  mpctx->global_sub_size =
mpctx->global_sub_indices[SUB_SOURCE_DEMUX] + dvdsub_id + 1;

 current_module="demux_open2";


-- 
Ulion
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dvdsubid_fix.diff
Type: text/x-diff
Size: 627 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20071103/a1994638/attachment.diff>


More information about the MPlayer-dev-eng mailing list