Commit 86e7e781 authored by Paul B Mahol's avatar Paul B Mahol

avcodec/tscc: check av_frame_alloc() for failure

parent 1e09dd96
......@@ -169,6 +169,8 @@ static av_cold int decode_init(AVCodecContext *avctx)
}
c->frame = av_frame_alloc();
if (!c->frame)
return AVERROR(ENOMEM);
return 0;
}
......
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