[FFmpeg-devel] [PATCH 06/11] avcodec/evc_parse: use the correct struct size when allocating pps

Paul B Mahol onemda at gmail.com
Thu Jun 15 18:20:53 EEST 2023


On Thu, Jun 15, 2023 at 5:20 PM James Almer <jamrial at gmail.com> wrote:

> Signed-off-by: James Almer <jamrial at gmail.com>
> ---
>  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 71e2605281..b3044eca3f 100644
> --- a/libavcodec/evc_parse.c
> +++ b/libavcodec/evc_parse.c
> @@ -357,7 +357,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;
>      }
>
>
Please fix  code style of lines you change.

-- 
> 2.41.0
>
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>
> To unsubscribe, visit link above, or email
> ffmpeg-devel-request at ffmpeg.org with subject "unsubscribe".
>


More information about the ffmpeg-devel mailing list