From 06f06e9d3046766ea16b4dfb8821d528048a50f1 Mon Sep 17 00:00:00 2001 From: Rodeo Date: Sun, 17 May 2015 16:13:09 +0000 Subject: preset_template: allow all supported passthru codecs by default. That way, very old presets and (more importantly) built-in presets do not force a restricted copy mask on the user. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7205 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- libhb/preset.c | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'libhb/preset.c') diff --git a/libhb/preset.c b/libhb/preset.c index 3e06f5d82..f42951df7 100644 --- a/libhb/preset.c +++ b/libhb/preset.c @@ -1747,15 +1747,10 @@ dict_clean(hb_value_t *dict, hb_value_t *template) { key = hb_dict_iter_key(iter); template_val = hb_dict_iter_value(iter); - - if (hb_value_type(template_val) != HB_VALUE_TYPE_ARRAY && - hb_value_type(template_val) != HB_VALUE_TYPE_DICT) + val = hb_dict_get(dict, key); + if (val == NULL) { - val = hb_dict_get(dict, key); - if (val == NULL) - { - hb_dict_set(dict, key, hb_value_dup(template_val)); - } + hb_dict_set(dict, key, hb_value_dup(template_val)); } } } -- cgit v1.2.3