From 6c02555397ca599a7ec9ea781e492631ecf1c7f2 Mon Sep 17 00:00:00 2001 From: wm4 Date: Wed, 15 Apr 2020 17:03:37 +0200 Subject: player: slightly improve use of secondary track selection limits Apparently, this was a bit of a mess, which caused the bug fixed by commit ec7f2388af2df. Try to improve this, and only use track selection entries that exist. --- options/options.c | 1 + 1 file changed, 1 insertion(+) (limited to 'options/options.c') diff --git a/options/options.c b/options/options.c index 3536e439a0..881810589d 100644 --- a/options/options.c +++ b/options/options.c @@ -467,6 +467,7 @@ static const m_option_t mp_opts[] = { {"index", OPT_CHOICE(index_mode, {"default", 1}, {"recreate", 0})}, // select audio/video/subtitle stream + // keep in sync with num_ptracks[] and MAX_PTRACKS {"aid", OPT_TRACKCHOICE(stream_id[0][STREAM_AUDIO])}, {"vid", OPT_TRACKCHOICE(stream_id[0][STREAM_VIDEO])}, {"sid", OPT_TRACKCHOICE(stream_id[0][STREAM_SUB])}, -- cgit v1.2.3