You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
avcodec/hevc_parser: check for av_mallocz() failure
Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
@@ -309,6 +309,8 @@ static int hevc_init(AVCodecParserContext *s)
|
||||
{
|
||||
HEVCContext *h = &((HEVCParseContext *)s->priv_data)->h;
|
||||
h->HEVClc = av_mallocz(sizeof(HEVCLocalContext));
|
||||
if (!h->HEVClc)
|
||||
return AVERROR(ENOMEM);
|
||||
h->skipped_bytes_pos_size = INT_MAX;
|
||||
|
||||
return 0;
|
||||
|
Reference in New Issue
Block a user