diff options
author | John Stebbins <[email protected]> | 2020-03-15 13:41:56 -0600 |
---|---|---|
committer | John Stebbins <[email protected]> | 2020-03-29 08:34:11 -0600 |
commit | a08c0f35a3776b62877d21edd2c715d84799d0c5 (patch) | |
tree | 82c666b903c91ec5e0682e0f91cd8399d3fad3c9 /libhb/hb_json.c | |
parent | 0c65eaabdaa9482be6c6a5d371aea248130a5180 (diff) |
json: fix PtoP range when converting job struct to json
seconds and frames were not writting to the "Range" dict but instead
writting to the "Source" dict.
Fortunately, nobody has been relying on this behavior
(cherry picked from commit 27085761c8afb02c8a73c792189f13923f330e44)
Diffstat (limited to 'libhb/hb_json.c')
-rw-r--r-- | libhb/hb_json.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/libhb/hb_json.c b/libhb/hb_json.c index d7cabc081..635326bd5 100644 --- a/libhb/hb_json.c +++ b/libhb/hb_json.c @@ -624,29 +624,29 @@ hb_dict_t* hb_job_to_dict( const hb_job_t * job ) else if (job->pts_to_start != 0 || job->pts_to_stop != 0) { range_dict = hb_dict_init(); - hb_dict_set(source_dict, "Type", hb_value_string("time")); + hb_dict_set(range_dict, "Type", hb_value_string("time")); if (job->pts_to_start > 0) { - hb_dict_set(source_dict, "Start", hb_value_int(job->pts_to_start)); + hb_dict_set(range_dict, "Start", hb_value_int(job->pts_to_start)); } if (job->pts_to_stop > 0) { - hb_dict_set(source_dict, "End", + hb_dict_set(range_dict, "End", hb_value_int(job->pts_to_start + job->pts_to_stop)); } } else if (job->frame_to_start != 0 || job->frame_to_stop != 0) { range_dict = hb_dict_init(); - hb_dict_set(source_dict, "Type", hb_value_string("frame")); + hb_dict_set(range_dict, "Type", hb_value_string("frame")); if (job->frame_to_start > 0) { - hb_dict_set(source_dict, "Start", + hb_dict_set(range_dict, "Start", hb_value_int(job->frame_to_start + 1)); } if (job->frame_to_stop > 0) { - hb_dict_set(source_dict, "End", + hb_dict_set(range_dict, "End", hb_value_int(job->frame_to_start + job->frame_to_stop)); } } |