Commit b70582e9 authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/proresenc_anatoliy: Check av_frame_alloc() return code

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent ea9daefe
......@@ -591,6 +591,8 @@ static av_cold int prores_encode_init(AVCodecContext *avctx)
}
avctx->coded_frame = av_frame_alloc();
if (!avctx->coded_frame)
return AVERROR(ENOMEM);
avctx->coded_frame->key_frame = 1;
avctx->coded_frame->pict_type = AV_PICTURE_TYPE_I;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment