diff options
author | Tim Walker <[email protected]> | 2016-03-29 23:39:48 +0200 |
---|---|---|
committer | Tim Walker <[email protected]> | 2016-03-31 01:05:16 +0200 |
commit | 6c56b2bed72bbb5f4d4d5b14307385ef42225b83 (patch) | |
tree | cb9291b24cddc0b329ed4055c89e0be24f04af91 /libhb | |
parent | bda943b293390b3939b00d3e951f4a60c0a6ef9f (diff) |
hb_json: sanitize JSON where both of video bitrate and quality are valid.
Check against vbitrate since it doesn't depend on a preprocessor define.
Diffstat (limited to 'libhb')
-rw-r--r-- | libhb/hb_json.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libhb/hb_json.c b/libhb/hb_json.c index 716ced4ce..62abea9b7 100644 --- a/libhb/hb_json.c +++ b/libhb/hb_json.c @@ -989,6 +989,12 @@ hb_job_t* hb_dict_to_job( hb_handle_t * h, hb_dict_t *dict ) hb_job_set_encoder_level(job, video_level); hb_job_set_encoder_options(job, video_options); + // sanitize video quality + if (job->vbitrate > 0) + { + job->vquality = HB_INVALID_VIDEO_QUALITY; + } + job->select_subtitle_config.dest = subtitle_search_burn ? RENDERSUB : PASSTHRUSUB; if (meta_name != NULL && meta_name[0] != 0) |