On 12/03/15 13:34, Vittorio Giovara wrote:
---
  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;
  }


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

Reply via email to