diff options
author | Anton Khirnov | 2011-05-26 08:48:31 +0200 |
---|---|---|
committer | Anton Khirnov | 2011-05-26 20:03:03 +0200 |
commit | 6c117d43c968629758c1b652e9b3a60cda6dcbac (patch) | |
tree | adf4b2c20858ead5c99b258bb1eef57e64d9d038 /libavutil/opt.c | |
parent | aaea1490351bfd1e8f21cb4b7e4c25d82d090e94 (diff) |
AVOptions: set string default values.
Diffstat (limited to 'libavutil/opt.c')
-rw-r--r-- | libavutil/opt.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libavutil/opt.c b/libavutil/opt.c index 74c39fee5f..4e25918ed1 100644 --- a/libavutil/opt.c +++ b/libavutil/opt.c @@ -443,8 +443,10 @@ void av_opt_set_defaults2(void *s, int mask, int flags) } break; case FF_OPT_TYPE_STRING: + av_set_string3(s, opt->name, opt->default_val.str, 1, NULL); + break; case FF_OPT_TYPE_BINARY: - /* Cannot set default for string as default_val is of type * double */ + /* Cannot set default for binary */ break; default: av_log(s, AV_LOG_DEBUG, "AVOption type %d of option %s not implemented yet\n", opt->type, opt->name); |