OSDN Git Service
(root)
/
coroid
/
libav_saccubus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aaea149
)
AVOptions: set string default values.
author
Anton Khirnov
<anton@khirnov.net>
Thu, 26 May 2011 06:48:31 +0000
(08:48 +0200)
committer
Anton Khirnov
<anton@khirnov.net>
Thu, 26 May 2011 18:03:03 +0000
(20:03 +0200)
libavutil/opt.c
patch
|
blob
|
history
diff --git
a/libavutil/opt.c
b/libavutil/opt.c
index
74c39fe
..
4e25918
100644
(file)
--- 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);