diff options
author | James Almer <jamrial@gmail.com> | 2023-06-15 10:35:23 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2023-06-16 10:08:32 -0300 |
commit | f42df8384aedeb435b6d427e1b704fda2bd87d5b (patch) | |
tree | 536e2040d89fcb2e98f790755238fb661cfbf6fc | |
parent | d00f0eebbdebdf03698e8e134c3765f3ccb2f8c7 (diff) | |
download | ffmpeg-f42df8384aedeb435b6d427e1b704fda2bd87d5b.tar.gz |
avcodec/evc_parse: use the correct struct size when allocating pps
Signed-off-by: James Almer <jamrial@gmail.com>
-rw-r--r-- | libavcodec/evc_parse.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/evc_parse.c b/libavcodec/evc_parse.c index f69d7ffb6b..cb6c6dc311 100644 --- a/libavcodec/evc_parse.c +++ b/libavcodec/evc_parse.c @@ -355,7 +355,7 @@ EVCParserPPS *ff_evc_parse_pps(EVCParserContext *ctx, const uint8_t *bs, int bs_ return NULL; if(!ctx->pps[pps_pic_parameter_set_id]) { - if((ctx->pps[pps_pic_parameter_set_id] = av_malloc(sizeof(EVCParserSPS))) == NULL) + if ((ctx->pps[pps_pic_parameter_set_id] = av_malloc(sizeof(EVCParserPPS))) == NULL) return NULL; } |