summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2015-05-09 16:19:48 +0000
committerjstebbins <[email protected]>2015-05-09 16:19:48 +0000
commita3a794091ca2e5d6949be1cc58c43ed5c4395b58 (patch)
treef0742524b7e09d810d0b7109af96c197354739ac /test
parent86cbd6ce4d2c0f2b89d2933b9061e523e059d4dd (diff)
cli: fix off-by-one error in subtitle track selection
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7165 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'test')
-rw-r--r--test/test.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test.c b/test/test.c
index b40c6478c..36dede1a3 100644
--- a/test/test.c
+++ b/test/test.c
@@ -4061,12 +4061,12 @@ PrepareJob(hb_handle_t *h, hb_title_t *title, hb_dict_t *preset_dict)
{
for (track = first - 1; track < last; track++)
{
- add_sub(subtitle_array, title, track, &one_burned);
+ add_sub(subtitle_array, title, track-1, &one_burned);
}
}
else if (sscanf(subtracks[ii], "%d", &track) == 1)
{
- add_sub(subtitle_array, title, track, &one_burned);
+ add_sub(subtitle_array, title, track-1, &one_burned);
}
else
{