diff options
author | Paul B Mahol <onemda@gmail.com> | 2018-09-08 21:17:26 +0200 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2018-09-08 21:17:26 +0200 |
commit | 86e7e7816b24b9ae1605735a790c2cef251c8210 (patch) | |
tree | e0fa81eaf1c9682d4ab09e8e4f5a44965e020501 | |
parent | 1e09dd96fe5c384113bdd6ffbe2411ebfefbc796 (diff) | |
download | ffmpeg-86e7e7816b24b9ae1605735a790c2cef251c8210.tar.gz |
avcodec/tscc: check av_frame_alloc() for failure
-rw-r--r-- | libavcodec/tscc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/tscc.c b/libavcodec/tscc.c index 31e7caeeeb..35f7ad05dd 100644 --- a/libavcodec/tscc.c +++ b/libavcodec/tscc.c @@ -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; } |