aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/evc_parser.c
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2023-06-15 11:03:51 -0300
committerJames Almer <jamrial@gmail.com>2023-06-17 10:08:54 -0300
commit44f26315c82b03988b4867b05cbfdba01627ca58 (patch)
tree2a1b7d770975c89f478b8b536400575fabb8ca4c /libavcodec/evc_parser.c
parent57879b23bc77013ac6832d19b62203975718f557 (diff)
downloadffmpeg-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.c2
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);
}
}