]> git.sesse.net Git - ffmpeg/commitdiff
AVOptions: make av_set_options_string() forward options to child objects
authorAnton Khirnov <anton@khirnov.net>
Tue, 12 Mar 2013 17:23:27 +0000 (18:23 +0100)
committerAnton Khirnov <anton@khirnov.net>
Thu, 28 Mar 2013 06:55:38 +0000 (07:55 +0100)
libavutil/opt.c

index f3dcdeebf889370cc8d867aa8cf879270afaaf1d..2cc6f6ce344027877a814bcfc6c044b038fc734f 100644 (file)
@@ -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);