diff options
author | James Almer <jamrial@gmail.com> | 2023-06-15 11:03:51 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2023-06-17 10:08:54 -0300 |
commit | 44f26315c82b03988b4867b05cbfdba01627ca58 (patch) | |
tree | 2a1b7d770975c89f478b8b536400575fabb8ca4c /libavcodec/evc_parser.c | |
parent | 57879b23bc77013ac6832d19b62203975718f557 (diff) | |
download | ffmpeg-44f26315c82b03988b4867b05cbfdba01627ca58.tar.gz |
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>
Diffstat (limited to 'libavcodec/evc_parser.c')
-rw-r--r-- | libavcodec/evc_parser.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/libavcodec/evc_parser.c b/libavcodec/evc_parser.c index 5feb673b04..072fe41bf1 100644 --- a/libavcodec/evc_parser.c +++ b/libavcodec/evc_parser.c @@ -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); } } |