[FFmpeg-cvslog] AVOptions: make av_set_options_string() forward options to child objects

Anton Khirnov git at videolan.org
Thu Mar 28 12:34:00 CET 2013


ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Tue Mar 12 18:23:27 2013 +0100| [cf53704c55378cc0dcfc16637cdac7d58f0b3107] | committer: Anton Khirnov

AVOptions: make av_set_options_string() forward options to child objects

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=cf53704c55378cc0dcfc16637cdac7d58f0b3107
---

 libavutil/opt.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavutil/opt.c b/libavutil/opt.c
index f3dcdee..2cc6f6c 100644
--- a/libavutil/opt.c
+++ b/libavutil/opt.c
@@ -573,7 +573,7 @@ static int parse_key_value_pair(void *ctx, const char **buf,
 
     av_log(ctx, AV_LOG_DEBUG, "Setting value '%s' for key '%s'\n", val, key);
 
-    ret = av_opt_set(ctx, key, val, 0);
+    ret = av_opt_set(ctx, key, val, AV_OPT_SEARCH_CHILDREN);
     if (ret == AVERROR_OPTION_NOT_FOUND)
         av_log(ctx, AV_LOG_ERROR, "Key '%s' not found.\n", key);
 



More information about the ffmpeg-cvslog mailing list