Commit b8a2331a authored by Michael Niedermayer's avatar Michael Niedermayer

ffv1: check for malloc failure.

Somehow i managed to loose this fix before pushing
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent bd63f8f6
......@@ -51,6 +51,8 @@ av_cold int ffv1_common_init(AVCodecContext *avctx)
s->picture.f = avcodec_alloc_frame();
s->last_picture.f = av_frame_alloc();
if (!s->picture.f || !s->last_picture.f)
return AVERROR(ENOMEM);
ff_dsputil_init(&s->dsp, avctx);
s->width = avctx->width;
......
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