mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2026-01-06 14:15:29 +01:00
lcl: Check memory allocation
This commit is contained in:
committed by
Luca Barbato
parent
7ca603f96f
commit
8df5fbf0b0
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user