---
libavformat/oggenc.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/libavformat/oggenc.c b/libavformat/oggenc.c
index fd102c8..d62a36c 100644
--- a/libavformat/oggenc.c
+++ b/libavformat/oggenc.c
@@ -423,6 +423,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 (!(st->codec->flags & CODEC_FLAG_BITEXACT))
--
1.8.3.2
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel