[FFmpeg-cvslog] lavu/opt: add support for binary defaults
Lukasz Marek
git at videolan.org
Tue Nov 11 21:53:23 CET 2014
ffmpeg | branch: master | Lukasz Marek <lukasz.m.luki2 at gmail.com> | Sun Nov 9 23:09:07 2014 +0100| [4efc79649b95cd8b53e9af86db5af7d81e46c808] | committer: Lukasz Marek
lavu/opt: add support for binary defaults
Signed-off-by: Lukasz Marek <lukasz.m.luki2 at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=4efc79649b95cd8b53e9af86db5af7d81e46c808
---
libavutil/opt.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/libavutil/opt.c b/libavutil/opt.c
index c064357..21506f7 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 0000000..e69de29
More information about the ffmpeg-cvslog
mailing list