On Sat, Feb 14, 2015 at 11:14 AM, Federico Tomassetti
<[email protected]> wrote:
> Bug-Id: CID 1257795
> CC: [email protected]
> ---
>  libavformat/oggenc.c | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/libavformat/oggenc.c b/libavformat/oggenc.c
> index 1b2644d..e4f583d 100644
> --- a/libavformat/oggenc.c
> +++ b/libavformat/oggenc.c
> @@ -444,6 +444,8 @@ static int ogg_write_header(AVFormatContext *s)
>              return -1;
>          }
>          oggstream = av_mallocz(sizeof(*oggstream));
> +        if (!oggstream)
> +            return AVERROR(ENOMEM);
>          oggstream->page.stream_index = i;
>
>          if (!(s->flags & AVFMT_FLAG_BITEXACT))

Looks right, thanks.
-- 
Vittorio
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to