summaryrefslogtreecommitdiffstats
path: root/mplayer.c
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-02-17 21:12:27 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-02-17 21:12:27 +0000
commit6683b20b627967a9cf9fb8b97ce69cba2bcc44c5 (patch)
treec1fc7a42599b968b46994459ea8ee27b4fe54a55 /mplayer.c
parent4b774aacd1c1afd62cddb8dc29710a605012fdb3 (diff)
downloadmpv-6683b20b627967a9cf9fb8b97ce69cba2bcc44c5.tar.bz2
mpv-6683b20b627967a9cf9fb8b97ce69cba2bcc44c5.tar.xz
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. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22252 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'mplayer.c')
-rw-r--r--mplayer.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/mplayer.c b/mplayer.c
index 097efd62b0..cecde8fc2e 100644
--- a/mplayer.c
+++ b/mplayer.c
@@ -4252,6 +4252,7 @@ if (stream->type != STREAMTYPE_DVD && stream->type != STREAMTYPE_DVDNAV) {
if (demuxer->s_streams[i])
global_sub_size++;
}
+if (global_sub_size <= dvdsub_id) global_sub_size = dvdsub_id + 1;
current_module="demux_open2";