changeset 22234:9a70738e124c

Make sure that -sid works even if the number of subtitles initially detected by the demuxer is smaller. Should improve a bit problems with non-selectable DVD/VOB subtitles.
author reimar
date Sat, 17 Feb 2007 21:12:27 +0000
parents 5bf6c178f09a
children 583926af08ac
files mplayer.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mplayer.c	Sat Feb 17 21:04:46 2007 +0000
+++ b/mplayer.c	Sat Feb 17 21:12:27 2007 +0000
@@ -4252,6 +4252,7 @@
     if (demuxer->s_streams[i])
       global_sub_size++;
 }
+if (global_sub_size <= dvdsub_id) global_sub_size = dvdsub_id + 1;
 
 current_module="demux_open2";