summaryrefslogtreecommitdiffstats
path: root/gtk/src/presets.c
diff options
context:
space:
mode:
authorJohn Stebbins <[email protected]>2016-10-31 09:35:27 -0700
committerGitHub <[email protected]>2016-10-31 09:35:27 -0700
commit00eeae7591023ed47a5cd6b90bf7b11ac1bfae41 (patch)
tree54cfe6bd3dced28944974448f888fda63f51a274 /gtk/src/presets.c
parent0a913f088db821b964edfd5a711292cc6069cfa9 (diff)
Add new anamorphic mode "Automatic", delete "Strict" (#367)
* Add new anamorphic mode "Automatic", delete "Strict" Anamorphic mode automatic is added to support Bradley's new presets that are designed to pick a PAR that maximizes storage resolution. Strict is converted to Loose + mod == 2 + UsesPictureSettings == 2 when importing presets
Diffstat (limited to 'gtk/src/presets.c')
-rw-r--r--gtk/src/presets.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/gtk/src/presets.c b/gtk/src/presets.c
index 76e09855e..256c7ef12 100644
--- a/gtk/src/presets.c
+++ b/gtk/src/presets.c
@@ -292,21 +292,14 @@ ghb_preset_to_settings(GhbValue *settings, GhbValue *preset)
ghb_dict_get_value(settings, "PictureWidth")));
int width, height, uses_pic, autoscale;
- const char * pic_par;
width = ghb_dict_get_int(settings, "PictureWidth");
height = ghb_dict_get_int(settings, "PictureHeight");
uses_pic = ghb_dict_get_int(settings, "UsesPictureSettings");
- pic_par = ghb_dict_get_string(settings, "PicturePAR");
- autoscale = uses_pic == 2 || (width == 0 && height == 0);
+ autoscale = uses_pic != 1 || (width == 0 && height == 0);
ghb_dict_set_bool(settings, "autoscale", autoscale);
- if (!autoscale && pic_par != NULL && !strcasecmp(pic_par, "strict"))
- {
- ghb_dict_set_string(settings, "PicturePAR", "loose");
- }
-
gint vqtype;
vqtype = ghb_dict_get_int(settings, "VideoQualityType");