From 330d547ef3cceb0a90b4db3bb0ea58d07dabe4d4 Mon Sep 17 00:00:00 2001 From: Lukasz Marek Date: Wed, 30 Apr 2014 00:00:44 +0200 Subject: lavf/mux: pass options to nested structs of priv data This commit allows to benefit from implementing child_next callback for muxers' AVClasses. Without that, options cannot be set in nested structs. Signed-off-by: Lukasz Marek --- libavformat/mux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavformat/mux.c') diff --git a/libavformat/mux.c b/libavformat/mux.c index 6847ec342b..7b4f7c77d3 100644 --- a/libavformat/mux.c +++ b/libavformat/mux.c @@ -334,7 +334,7 @@ static int init_muxer(AVFormatContext *s, AVDictionary **options) if (of->priv_class) { *(const AVClass **)s->priv_data = of->priv_class; av_opt_set_defaults(s->priv_data); - if ((ret = av_opt_set_dict(s->priv_data, &tmp)) < 0) + if ((ret = av_opt_set_dict2(s->priv_data, &tmp, AV_OPT_SEARCH_CHILDREN)) < 0) goto fail; } } -- cgit v1.2.3