Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2018-01-20 22:55:00 +0300
committerJames Almer <jamrial@gmail.com>2018-01-21 06:17:23 +0300
commit2159d4bbc3e69d04242e87bac13ebea8b942d94d (patch)
tree16d10126e41db619c78aedef3fec6a924efa2095 /libavcodec/hevc_parser.c
parent1f0cf1b2f4ef6304c343d53508193ac4b5d9c1d2 (diff)
avcodec/hevc_parser: use ff_hevc_uninit_parameter_sets()
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavcodec/hevc_parser.c')
-rw-r--r--libavcodec/hevc_parser.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/libavcodec/hevc_parser.c b/libavcodec/hevc_parser.c
index ff7e8a49d6..88d3d9a22f 100644
--- a/libavcodec/hevc_parser.c
+++ b/libavcodec/hevc_parser.c
@@ -359,17 +359,8 @@ static int hevc_split(AVCodecContext *avctx, const uint8_t *buf, int buf_size)
static void hevc_parser_close(AVCodecParserContext *s)
{
HEVCParserContext *ctx = s->priv_data;
- int i;
-
- for (i = 0; i < FF_ARRAY_ELEMS(ctx->ps.vps_list); i++)
- av_buffer_unref(&ctx->ps.vps_list[i]);
- for (i = 0; i < FF_ARRAY_ELEMS(ctx->ps.sps_list); i++)
- av_buffer_unref(&ctx->ps.sps_list[i]);
- for (i = 0; i < FF_ARRAY_ELEMS(ctx->ps.pps_list); i++)
- av_buffer_unref(&ctx->ps.pps_list[i]);
-
- ctx->ps.sps = NULL;
+ ff_hevc_ps_uninit(&ctx->ps);
ff_h2645_packet_uninit(&ctx->pkt);
ff_hevc_reset_sei(&ctx->sei);