diff options
author | jstebbins <[email protected]> | 2015-05-14 15:14:39 +0000 |
---|---|---|
committer | jstebbins <[email protected]> | 2015-05-14 15:14:39 +0000 |
commit | 90cafad3e4c610b8b009769f922fabc283979231 (patch) | |
tree | 80e114ce0c6a4624073be289b7cfd21b1f90ce92 /libhb | |
parent | e80199e90bed90b5b6a171da46e4591abd2e25db (diff) |
cli: fix --height
Didn't set the proper flag to make hb_set_anamorphic_size prefer keeping
the height over the width.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7178 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb')
-rw-r--r-- | libhb/preset.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/libhb/preset.c b/libhb/preset.c index c49073cf4..97a647214 100644 --- a/libhb/preset.c +++ b/libhb/preset.c @@ -968,13 +968,23 @@ hb_dict_t* hb_preset_job_init(hb_handle_t *h, int title_index, hb_dict_t *preset int width = hb_value_get_int(hb_dict_get(preset, "PictureForceWidth")); int height = hb_value_get_int(hb_dict_get(preset, "PictureForceHeight")); if (width > 0) + { geo.geometry.width = width; + geo.keep |= HB_KEEP_WIDTH; + } else + { geo.geometry.width -= geo.crop[2] + geo.crop[3]; + } if (height > 0) + { geo.geometry.height = height; + geo.keep |= HB_KEEP_HEIGHT; + } else + { geo.geometry.height -= geo.crop[0] + geo.crop[1]; + } if (geo.mode == HB_ANAMORPHIC_CUSTOM && !keep_aspect) { int dar_width; |