ffv1: check for malloc failure.

Somehow i managed to loose this fix before pushing

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
pull/18/head
Michael Niedermayer 12 years ago
parent bd63f8f657
commit b8a2331a70
  1. 2
      libavcodec/ffv1.c

@ -51,6 +51,8 @@ av_cold int ffv1_common_init(AVCodecContext *avctx)
s->picture.f = avcodec_alloc_frame(); s->picture.f = avcodec_alloc_frame();
s->last_picture.f = av_frame_alloc(); s->last_picture.f = av_frame_alloc();
if (!s->picture.f || !s->last_picture.f)
return AVERROR(ENOMEM);
ff_dsputil_init(&s->dsp, avctx); ff_dsputil_init(&s->dsp, avctx);
s->width = avctx->width; s->width = avctx->width;

Loading…
Cancel
Save