diff options
author | John Stebbins <[email protected]> | 2015-09-01 08:58:22 -0700 |
---|---|---|
committer | John Stebbins <[email protected]> | 2015-09-01 08:59:20 -0700 |
commit | 8d06a576a1e243ca3479291c9b2238837fc26769 (patch) | |
tree | 7e93538809852c424ff8f5f32861359e897bb595 | |
parent | 466fabc71c654719ef77d4d168b443e5c45b9a84 (diff) |
CLI: Fix selection of default, burned, and forced subtitle tracks
The selection needs to be based on the output track number, not the
source track number.
-rw-r--r-- | test/test.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/test/test.c b/test/test.c index a0bb1b3f3..7aa86fb3a 100644 --- a/test/test.c +++ b/test/test.c @@ -3544,11 +3544,12 @@ static int add_sub(hb_value_array_t *list, hb_title_t *title, int track, int *on return -1; } - int burn = !*one_burned && subburn == track + 1 && + int out_track = hb_value_array_len(list); + int burn = !*one_burned && subburn == out_track + 1 && hb_subtitle_can_burn(subtitle->source); *one_burned |= burn; - int def = subdefault == track + 1; - int force = test_sub_list(subforce, track + 1); + int def = subdefault == out_track + 1; + int force = test_sub_list(subforce, out_track + 1); if (!burn && !hb_subtitle_can_pass(subtitle->source, mux)) |