diff options
author | Lukasz Marek <lukasz.m.luki2@gmail.com> | 2014-11-09 23:09:07 +0100 |
---|---|---|
committer | Lukasz Marek <lukasz.m.luki2@gmail.com> | 2014-11-11 21:52:26 +0100 |
commit | 4efc79649b95cd8b53e9af86db5af7d81e46c808 (patch) | |
tree | 02c633cbc3019228c3d313b669af6deaed29272f | |
parent | bb60142f562ef9ca7f34bd69abe059d56ea1cbf1 (diff) | |
download | ffmpeg-4efc79649b95cd8b53e9af86db5af7d81e46c808.tar.gz |
lavu/opt: add support for binary defaults
Signed-off-by: Lukasz Marek <lukasz.m.luki2@gmail.com>
-rw-r--r-- | libavutil/opt.c | 2 | ||||
-rw-r--r-- | tests/ref/fate/opt | 0 |
2 files changed, 2 insertions, 0 deletions
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 --- /dev/null +++ b/tests/ref/fate/opt |