On Thu, Jan 31, 2013 at 09:08:43PM +0100, Anton Khirnov wrote:
> ---
>  libavformat/bink.c |    2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/libavformat/bink.c b/libavformat/bink.c
> index 5d3de14..62c377d 100644
> --- a/libavformat/bink.c
> +++ b/libavformat/bink.c
> @@ -116,6 +116,8 @@ static int read_header(AVFormatContext *s)
>      vst->codec->codec_type = AVMEDIA_TYPE_VIDEO;
>      vst->codec->codec_id   = AV_CODEC_ID_BINKVIDEO;
>      vst->codec->extradata  = av_mallocz(4 + FF_INPUT_BUFFER_PADDING_SIZE);
> +    if (!vst->codec->extradata)
> +        return AVERROR(ENOMEM);
>      vst->codec->extradata_size = 4;
>      avio_read(pb, vst->codec->extradata, 4);
>  
> -- 

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

Reply via email to