---
libavcodec/libtheoraenc.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/libavcodec/libtheoraenc.c b/libavcodec/libtheoraenc.c
index f88faf4..097336b 100644
--- a/libavcodec/libtheoraenc.c
+++ b/libavcodec/libtheoraenc.c
@@ -266,6 +266,8 @@ static av_cold int encode_init(AVCodecContext* avc_context)
/* Set up the output AVFrame */
avc_context->coded_frame = av_frame_alloc();
+ if (!avc_context->coded_frame)
+ return AVERROR(ENOMEM);
return 0;
}
--
1.9.3 (Apple Git-50)
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel