Hi,

On Thu, May 26, 2011 at 3:23 AM, Anton Khirnov <[email protected]> wrote:
> ---
>  libavformat/utils.c |    4 ++++
>  1 files changed, 4 insertions(+), 0 deletions(-)
>
> diff --git a/libavformat/utils.c b/libavformat/utils.c
> index 89ab108..b844ab9 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;
>     }
> --
> 1.7.5.1

OK.

Ronald
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to