diff options
author | Anton Khirnov <anton@khirnov.net> | 2011-05-26 06:59:08 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2011-05-26 20:03:26 +0200 |
commit | 9749cdf7754e600ff50dc255519fdb7bb5aad800 (patch) | |
tree | 9469e0f0c3e24ff23a5921ac0b472604c4c04be8 | |
parent | 6c117d43c968629758c1b652e9b3a60cda6dcbac (diff) | |
download | ffmpeg-9749cdf7754e600ff50dc255519fdb7bb5aad800.tar.gz |
lavf: initialize demuxer private options.
-rw-r--r-- | libavformat/utils.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c index 89ab1086fe..b844ab95bc 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -424,6 +424,10 @@ int av_open_input_stream(AVFormatContext **ic_ptr, err = AVERROR(ENOMEM); goto fail; } + if (fmt->priv_class) { + *(const AVClass**)ic->priv_data = fmt->priv_class; + av_opt_set_defaults(ic->priv_data); + } } else { ic->priv_data = NULL; } |