aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2023-06-15 10:35:23 -0300
committerJames Almer <jamrial@gmail.com>2023-06-16 10:08:32 -0300
commitf42df8384aedeb435b6d427e1b704fda2bd87d5b (patch)
tree536e2040d89fcb2e98f790755238fb661cfbf6fc
parentd00f0eebbdebdf03698e8e134c3765f3ccb2f8c7 (diff)
downloadffmpeg-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.c2
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;
}