summaryrefslogtreecommitdiffstats
path: root/test/test.c
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2015-06-01 21:00:20 +0000
committerjstebbins <[email protected]>2015-06-01 21:00:20 +0000
commitbece93e844c52a08623b1e8f89d7346069ad282a (patch)
tree340fbedc67ea7282125efb5557e4e96a377d370b /test/test.c
parent40c186f13a4b9f5604155c062a523c8460eb9a4e (diff)
CLI: fix --crop option
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7260 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'test/test.c')
-rw-r--r--test/test.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/test.c b/test/test.c
index 408181f02..ec031f7bd 100644
--- a/test/test.c
+++ b/test/test.c
@@ -3346,6 +3346,10 @@ static hb_dict_t * PreparePreset(const char *preset_name)
{
hb_dict_set(preset, "PictureForceHeight", hb_value_int(height));
}
+ if (crop[0] >= 0 || crop[1] >= 0 || crop[2] >= 0 || crop[3] >= 0)
+ {
+ hb_dict_set(preset, "PictureAutoCrop", hb_value_bool(0));
+ }
if (crop[0] >= 0)
{
hb_dict_set(preset, "PictureTopCrop", hb_value_int(crop[0]));