avcodec/tscc: check av_frame_alloc() for failure

pull/296/head
Paul B Mahol 6 years ago
parent 1e09dd96fe
commit 86e7e7816b
  1. 2
      libavcodec/tscc.c

@ -169,6 +169,8 @@ static av_cold int decode_init(AVCodecContext *avctx)
} }
c->frame = av_frame_alloc(); c->frame = av_frame_alloc();
if (!c->frame)
return AVERROR(ENOMEM);
return 0; return 0;
} }

Loading…
Cancel
Save