On Sat, 18 Jun 2011 15:33:59 -0400, "Ronald S. Bultje" <[email protected]> 
wrote:
> Needed for proper behaviour in our old API compatibility code.
> ---
>  libavformat/utils.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/libavformat/utils.c b/libavformat/utils.c
> index 81bc9b7..7370c60 100644
> --- a/libavformat/utils.c
> +++ b/libavformat/utils.c
> @@ -549,7 +549,7 @@ int av_open_input_file(AVFormatContext **ic_ptr, const 
> char *filename,
>      int err;
>      AVDictionary *opts = convert_format_parameters(ap);
>  
> -    if (!ap->prealloced_context)
> +    if (!ap || !ap->prealloced_context)
>          *ic_ptr = NULL;
>  
>      err = avformat_open_input(ic_ptr, filename, fmt, &opts);
> -- 
> 1.7.2.1
> 

Ok, thanks for fixing this.

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

Reply via email to