]> granicus.if.org Git - handbrake/commitdiff
presets: fix setting of default preset values
authorJohn Stebbins <jstebbins.hb@gmail.com>
Wed, 8 Aug 2018 21:37:58 +0000 (14:37 -0700)
committerJohn Stebbins <jstebbins.hb@gmail.com>
Thu, 9 Aug 2018 21:46:32 +0000 (14:46 -0700)
Fixes root cause of problem reported in:
https://github.com/HandBrake/HandBrake/pull/1524

(cherry picked from commit 7b084a6fafe9a388885de744d8d4c0d422958f06)

libhb/preset.c

index 4a581e01708ee878deb538d30adc4d5ae6c43804..00907801e2eeacf2aa2ac25756a576a41e44ab79 100644 (file)
@@ -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);