---
libavformat/oggdec.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/libavformat/oggdec.c b/libavformat/oggdec.c
index ae9da3a..95a94a7 100644
--- a/libavformat/oggdec.c
+++ b/libavformat/oggdec.c
@@ -72,6 +72,8 @@ static int ogg_save(AVFormatContext *s)
for (i = 0; i < ogg->nstreams; i++) {
struct ogg_stream *os = ogg->streams + i;
os->buf = av_mallocz(os->bufsize + FF_INPUT_BUFFER_PADDING_SIZE);
+ if (!os->buf)
+ return AVERROR(ENOMEM);
memcpy(os->buf, ost->streams[i].buf, os->bufpos);
}
--
1.8.3.2
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel