[FFmpeg-cvslog] AVOptions: set string default values.
Anton Khirnov
git at videolan.org
Fri May 27 02:53:56 CEST 2011
ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Thu May 26 08:48:31 2011 +0200| [6c117d43c968629758c1b652e9b3a60cda6dcbac] | committer: Anton Khirnov
AVOptions: set string default values.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=6c117d43c968629758c1b652e9b3a60cda6dcbac
---
libavutil/opt.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/libavutil/opt.c b/libavutil/opt.c
index 74c39fe..4e25918 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);
More information about the ffmpeg-cvslog
mailing list