lcl: Check memory allocation

pull/136/head
Vittorio Giovara 10 years ago committed by Luca Barbato
parent 7ca603f96f
commit 8df5fbf0b0
  1. 2
      libavcodec/lclenc.c

@ -135,6 +135,8 @@ static av_cold int encode_init(AVCodecContext *avctx)
assert(avctx->width && avctx->height);
avctx->extradata= av_mallocz(8);
if (!avctx->extradata)
return AVERROR(ENOMEM);
avctx->coded_frame = av_frame_alloc();
if (!avctx->coded_frame)

Loading…
Cancel
Save