From: John Stebbins Date: Wed, 8 Aug 2018 21:37:58 +0000 (-0700) Subject: presets: fix setting of default preset values X-Git-Tag: 1.1.2~17 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a3305a85f2f7374acf1ce1b4e43088772ef7f1a6;p=handbrake presets: fix setting of default preset values Fixes root cause of problem reported in: https://github.com/HandBrake/HandBrake/pull/1524 (cherry picked from commit 7b084a6fafe9a388885de744d8d4c0d422958f06) --- diff --git a/libhb/preset.c b/libhb/preset.c index 4a581e017..00907801e 100644 --- a/libhb/preset.c +++ b/libhb/preset.c @@ -3216,7 +3216,7 @@ int hb_presets_import(const hb_value_t *in, hb_value_t **out) } else { - *out = hb_value_dup(in); + *out = hb_value_dup(dup); } hb_value_free(&dup);