diff options
author | James Almer <jamrial@gmail.com> | 2018-01-20 22:54:51 +0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2018-01-21 06:09:29 +0300 |
commit | 1f0cf1b2f4ef6304c343d53508193ac4b5d9c1d2 (patch) | |
tree | e04c8ea6136de12463484dbefaa647befe1b8765 /libavcodec/hevcdec.c | |
parent | 9462b2b8205397ea5972b2365c2e8db6872ef3e9 (diff) |
avcodec/hevcdec: 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/hevcdec.c')
-rw-r--r-- | libavcodec/hevcdec.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/libavcodec/hevcdec.c b/libavcodec/hevcdec.c index 4bfae8c12b..8f1c1f1953 100644 --- a/libavcodec/hevcdec.c +++ b/libavcodec/hevcdec.c @@ -3277,15 +3277,7 @@ static av_cold int hevc_decode_free(AVCodecContext *avctx) av_frame_free(&s->DPB[i].frame); } - for (i = 0; i < FF_ARRAY_ELEMS(s->ps.vps_list); i++) - av_buffer_unref(&s->ps.vps_list[i]); - for (i = 0; i < FF_ARRAY_ELEMS(s->ps.sps_list); i++) - av_buffer_unref(&s->ps.sps_list[i]); - for (i = 0; i < FF_ARRAY_ELEMS(s->ps.pps_list); i++) - av_buffer_unref(&s->ps.pps_list[i]); - s->ps.sps = NULL; - s->ps.pps = NULL; - s->ps.vps = NULL; + ff_hevc_ps_uninit(&s->ps); av_freep(&s->sh.entry_point_offset); av_freep(&s->sh.offset); |