1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-11-29 05:57:37 +02:00

avcodec/evc_parse: use a local EVCParserSliceHeader when parsing slices

There's no need to store EVC_MAX_PPS_COUNT amount of slice headers in EVCParserContext.

Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
James Almer
2023-06-15 11:03:51 -03:00
parent 57879b23bc
commit 44f26315c8
3 changed files with 21 additions and 35 deletions

View File

@@ -209,10 +209,8 @@ static void evc_parser_close(AVCodecParserContext *s)
for(int i = 0; i < EVC_MAX_PPS_COUNT; i++) {
EVCParserPPS *pps = ctx->pps[i];
EVCParserSliceHeader *sh = ctx->slice_header[i];
av_freep(&pps);
av_freep(&sh);
}
}