diff options
author | James Almer <jamrial@gmail.com> | 2023-06-15 11:13:48 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2023-06-17 10:08:54 -0300 |
commit | 9fc1d9adc8d05056ea53522c34ae4953ccdb7c59 (patch) | |
tree | 8293d5d2638c83beb5d27ac08276aa1c668ba286 /libavcodec/evc_parser.c | |
parent | 46a9be01b8c200636fb3ebbe43f209ae27b26dbc (diff) |
avcodec/evc_parse: make freeing EVCParserContext buffers a shared function
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavcodec/evc_parser.c')
-rw-r--r-- | libavcodec/evc_parser.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/libavcodec/evc_parser.c b/libavcodec/evc_parser.c index 072fe41bf1..c85b8f89e7 100644 --- a/libavcodec/evc_parser.c +++ b/libavcodec/evc_parser.c @@ -202,16 +202,7 @@ static void evc_parser_close(AVCodecParserContext *s) { EVCParserContext *ctx = s->priv_data; - for(int i = 0; i < EVC_MAX_SPS_COUNT; i++) { - EVCParserSPS *sps = ctx->sps[i]; - av_freep(&sps); - } - - for(int i = 0; i < EVC_MAX_PPS_COUNT; i++) { - EVCParserPPS *pps = ctx->pps[i]; - - av_freep(&pps); - } + ff_evc_parse_free(ctx); } const AVCodecParser ff_evc_parser = { |