avcodec/evc_parse: use the correct struct size when allocating pps

Signed-off-by: James Almer <jamrial@gmail.com>
pull/389/head
James Almer 2 years ago
parent d00f0eebbd
commit f42df8384a
  1. 2
      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;
}

Loading…
Cancel
Save