]> granicus.if.org Git - handbrake/commitdiff
LinGui: fix problem with application of autoscale
authorJohn Stebbins <jstebbins.hb@gmail.com>
Sat, 17 Mar 2018 00:30:02 +0000 (18:30 -0600)
committerJohn Stebbins <jstebbins.hb@gmail.com>
Sat, 17 Mar 2018 00:30:02 +0000 (18:30 -0600)
Fixes https://github.com/HandBrake/HandBrake/issues/1146

gtk/src/presets.c

index 32e9782deefc2310896d164c0e1c0d5d1b40f956..065a8383c6a7a5e0d0749dfe0f3eb8df624d7985 100644 (file)
@@ -265,6 +265,8 @@ ghb_preset_to_settings(GhbValue *settings, GhbValue *preset)
 
     autoscale = uses_pic != 1 || (width == 0 && height == 0);
     ghb_dict_set_bool(settings, "autoscale", autoscale);
+    ghb_dict_set_int(settings, "PictureWidthEnable", !autoscale);
+    ghb_dict_set_int(settings, "PictureHeightEnable", !autoscale);
 
     gint vqtype;