summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libhb/builtin_presets.h11
-rw-r--r--libhb/preset.c11
-rw-r--r--libhb/preset_template.json8
-rwxr-xr-xscripts/create_resources.py2
4 files changed, 22 insertions, 10 deletions
diff --git a/libhb/builtin_presets.h b/libhb/builtin_presets.h
index fba7e1b67..2ad9f34ec 100644
--- a/libhb/builtin_presets.h
+++ b/libhb/builtin_presets.h
@@ -778,7 +778,16 @@ const char hb_builtin_presets_json[] =
" ], \n"
" \"PresetTemplate\": {\n"
" \"Preset\": {\n"
-" \"AudioCopyMask\": [], \n"
+" \"AudioCopyMask\": [\n"
+" \"copy:aac\", \n"
+" \"copy:ac3\", \n"
+" \"copy:dts\", \n"
+" \"copy:dtshd\", \n"
+" \"copy:eac3\", \n"
+" \"copy:flac\", \n"
+" \"copy:mp3\", \n"
+" \"copy:truehd\"\n"
+" ], \n"
" \"AudioEncoderFallback\": \"ac3\", \n"
" \"AudioLanguageList\": [\n"
" \"und\"\n"
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));
}
}
}
diff --git a/libhb/preset_template.json b/libhb/preset_template.json
index c0a650703..e371a8ebc 100644
--- a/libhb/preset_template.json
+++ b/libhb/preset_template.json
@@ -1,5 +1,13 @@
{
"AudioCopyMask": [
+ "copy:aac",
+ "copy:ac3",
+ "copy:dts",
+ "copy:dtshd",
+ "copy:eac3",
+ "copy:flac",
+ "copy:mp3",
+ "copy:truehd"
],
"AudioEncoderFallback": "ac3",
"AudioLanguageList": [
diff --git a/scripts/create_resources.py b/scripts/create_resources.py
index 26f7acd1c..a27afab20 100755
--- a/scripts/create_resources.py
+++ b/scripts/create_resources.py
@@ -1,4 +1,4 @@
-#! /bin/python
+#! /usr/bin/python
#
import types