summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorJohn Stebbins <[email protected]>2017-01-11 14:25:07 -0700
committerJohn Stebbins <[email protected]>2017-01-11 14:26:48 -0700
commit5ed4dc7ff3dfd1a19b27863e30900505e292b529 (patch)
tree1bae5bd0378acc24c40ae52fa92113a113124e1c /test
parent06b07f9eeb31be0554b4a729554ec5dee92794c4 (diff)
json: revise range "End" for time and frame ranges
"End" was a duration. It is now the actual "End" position in 90khz ticks or frames.
Diffstat (limited to 'test')
-rw-r--r--test/test.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/test/test.c b/test/test.c
index 2d21d153b..d48e88a8b 100644
--- a/test/test.c
+++ b/test/test.c
@@ -4026,13 +4026,20 @@ PrepareJob(hb_handle_t *h, hb_title_t *title, hb_dict_t *preset_dict)
{
range_type = "time";
range_start = start_at_pts;
- range_end = stop_at_pts;
+ if (stop_at_pts > 0)
+ range_end = start_at_pts + stop_at_pts;
}
else if (start_at_frame || stop_at_frame)
{
range_type = "frame";
range_start = start_at_frame;
- range_end = stop_at_frame;
+ if (stop_at_frame > 0)
+ {
+ if (start_at_frame > 0)
+ range_end = start_at_frame + stop_at_frame - 1;
+ else
+ range_end = stop_at_frame;
+ }
}
if (range_start || range_end)
{