diff options
author | John Stebbins <[email protected]> | 2016-04-03 07:48:48 -0700 |
---|---|---|
committer | John Stebbins <[email protected]> | 2016-04-03 07:48:48 -0700 |
commit | 7a268dcebb31604fe35d1d40ff1cb91b70498eff (patch) | |
tree | 795c0f0546b41005e96405a55caa185271e3cc60 /libhb/preset.c | |
parent | c0d19cc1e276f0818087c50f05efcf793cca6a92 (diff) |
json: fix sanitization of vquality
... and other assorted cleanups ;)
Diffstat (limited to 'libhb/preset.c')
-rw-r--r-- | libhb/preset.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libhb/preset.c b/libhb/preset.c index f51dbb519..2af02b0ed 100644 --- a/libhb/preset.c +++ b/libhb/preset.c @@ -1434,7 +1434,7 @@ int hb_preset_apply_video(const hb_dict_t *preset, hb_dict_t *job_dict) hb_dict_set(video_dict, "Quality", hb_value_xform(hb_dict_get(preset, "VideoQualitySlider"), HB_VALUE_TYPE_DOUBLE)); - hb_dict_set(video_dict, "Bitrate", hb_value_int(-1)); + hb_dict_remove(video_dict, "Bitrate"); } else if (vqtype == 1) // ABR { @@ -1447,7 +1447,7 @@ int hb_preset_apply_video(const hb_dict_t *preset, hb_dict_t *job_dict) hb_dict_set(video_dict, "Turbo", hb_value_xform(hb_dict_get(preset, "VideoTurboTwoPass"), HB_VALUE_TYPE_BOOL)); - hb_dict_set(video_dict, "Quality", hb_value_double(-1.0)); + hb_dict_remove(video_dict, "Quality"); } else { @@ -1456,7 +1456,7 @@ int hb_preset_apply_video(const hb_dict_t *preset, hb_dict_t *job_dict) { hb_dict_set(video_dict, "Quality", hb_value_xform(value, HB_VALUE_TYPE_DOUBLE)); - hb_dict_set(video_dict, "Bitrate", hb_value_int(-1)); + hb_dict_remove(video_dict, "Bitrate"); } else { @@ -1469,7 +1469,7 @@ int hb_preset_apply_video(const hb_dict_t *preset, hb_dict_t *job_dict) hb_dict_set(video_dict, "Turbo", hb_value_xform(hb_dict_get(preset, "VideoTurboTwoPass"), HB_VALUE_TYPE_BOOL)); - hb_dict_set(video_dict, "Quality", hb_value_double(-1.0)); + hb_dict_remove(video_dict, "Quality"); } } qsv = hb_dict_get(video_dict, "QSV"); |