]> granicus.if.org Git - handbrake/commitdiff
CLI: fix --crop option
authorjstebbins <jstebbins.hb@gmail.com>
Mon, 1 Jun 2015 21:00:20 +0000 (21:00 +0000)
committerjstebbins <jstebbins.hb@gmail.com>
Mon, 1 Jun 2015 21:00:20 +0000 (21:00 +0000)
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7260 b64f7644-9d1e-0410-96f1-a4d463321fa5

test/test.c

index 408181f0237be3f91ed570ea3fd1d57b42bd3431..ec031f7bd3cd985f4c478b68c19ffc14cc71214b 100644 (file)
@@ -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]));