diff options
author | Rodeo <[email protected]> | 2015-05-17 16:13:09 +0000 |
---|---|---|
committer | Rodeo <[email protected]> | 2015-05-17 16:13:09 +0000 |
commit | 06f06e9d3046766ea16b4dfb8821d528048a50f1 (patch) | |
tree | eaf4a545f9b7c25e2662117b905213a3cfa0a459 /libhb/preset.c | |
parent | 2ee01596fafc8f36bdf828fc26861a191e43ceb3 (diff) |
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
Diffstat (limited to 'libhb/preset.c')
-rw-r--r-- | libhb/preset.c | 11 |
1 files changed, 3 insertions, 8 deletions
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)); } } } |