1
mirror of https://github.com/mpv-player/mpv synced 2024-10-22 08:51:57 +02:00

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
This commit is contained in:
reimar 2007-02-17 21:12:27 +00:00
parent 4b774aacd1
commit 6683b20b62

View File

@ -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";