[FFmpeg-cvslog] avcodec/evc_parse: use the correct struct size when allocating pps
James Almer
git at videolan.org
Fri Jun 16 16:09:31 EEST 2023
ffmpeg | branch: master | James Almer <jamrial at gmail.com> | Thu Jun 15 10:35:23 2023 -0300| [f42df8384aedeb435b6d427e1b704fda2bd87d5b] | committer: James Almer
avcodec/evc_parse: use the correct struct size when allocating pps
Signed-off-by: James Almer <jamrial at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=f42df8384aedeb435b6d427e1b704fda2bd87d5b
---
libavcodec/evc_parse.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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;
}
More information about the ffmpeg-cvslog
mailing list