You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
ffv1: check for malloc failure.
Somehow i managed to loose this fix before pushing Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user