summaryrefslogtreecommitdiff
path: root/libavcodec/tscc.c
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2018-09-08 21:17:26 +0200
committerPaul B Mahol <onemda@gmail.com>2018-09-08 21:17:26 +0200
commit86e7e7816b24b9ae1605735a790c2cef251c8210 (patch)
treee0fa81eaf1c9682d4ab09e8e4f5a44965e020501 /libavcodec/tscc.c
parent1e09dd96fe5c384113bdd6ffbe2411ebfefbc796 (diff)
avcodec/tscc: check av_frame_alloc() for failure
Diffstat (limited to 'libavcodec/tscc.c')
-rw-r--r--libavcodec/tscc.c2
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;
}