lavf: initialize demuxer private options.

This commit is contained in:
Anton Khirnov 2011-05-26 06:59:08 +02:00
parent 6c117d43c9
commit 9749cdf775

View File

@ -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;
}