[FFmpeg-cvslog] lavf/mux: pass options to nested structs of priv data

Lukasz Marek git at videolan.org
Fri May 2 19:02:15 CEST 2014


ffmpeg | branch: master | Lukasz Marek <lukasz.m.luki2 at gmail.com> | Wed Apr 30 00:00:44 2014 +0200| [330d547ef3cceb0a90b4db3bb0ea58d07dabe4d4] | committer: Lukasz Marek

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 <lukasz.m.luki2 at gmail.com>

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

 libavformat/mux.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/mux.c b/libavformat/mux.c
index 6847ec3..7b4f7c7 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;
         }
     }



More information about the ffmpeg-cvslog mailing list