Browse Source

lavf: initialize demuxer private options.

tags/n0.8
Anton Khirnov 14 years ago
parent
commit
9749cdf775
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      libavformat/utils.c

+ 4
- 0
libavformat/utils.c 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;
}


Loading…
Cancel
Save