From 4efc79649b95cd8b53e9af86db5af7d81e46c808 Mon Sep 17 00:00:00 2001 From: Lukasz Marek Date: Sun, 9 Nov 2014 23:09:07 +0100 Subject: lavu/opt: add support for binary defaults Signed-off-by: Lukasz Marek --- libavutil/opt.c | 2 ++ tests/ref/fate/opt | 0 2 files changed, 2 insertions(+) create mode 100644 tests/ref/fate/opt diff --git a/libavutil/opt.c b/libavutil/opt.c index c064357f70..21506f7709 100644 --- a/libavutil/opt.c +++ b/libavutil/opt.c @@ -1225,6 +1225,8 @@ void av_opt_set_defaults2(void *s, int mask, int flags) write_number(s, opt, dst, 1, 1, opt->default_val.i64); break; case AV_OPT_TYPE_BINARY: + set_string_binary(s, opt, opt->default_val.str, dst); + break; case AV_OPT_TYPE_DICT: /* Cannot set defaults for these types */ break; diff --git a/tests/ref/fate/opt b/tests/ref/fate/opt new file mode 100644 index 0000000000..e69de29bb2 -- cgit v1.2.3