Commit 1f0cf1b2 authored by James Almer's avatar James Almer

avcodec/hevcdec: use ff_hevc_uninit_parameter_sets()

Reviewed-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
Signed-off-by: 's avatarJames Almer <jamrial@gmail.com>
parent 9462b2b8
...@@ -3277,15 +3277,7 @@ static av_cold int hevc_decode_free(AVCodecContext *avctx) ...@@ -3277,15 +3277,7 @@ static av_cold int hevc_decode_free(AVCodecContext *avctx)
av_frame_free(&s->DPB[i].frame); av_frame_free(&s->DPB[i].frame);
} }
for (i = 0; i < FF_ARRAY_ELEMS(s->ps.vps_list); i++) ff_hevc_ps_uninit(&s->ps);
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;
av_freep(&s->sh.entry_point_offset); av_freep(&s->sh.entry_point_offset);
av_freep(&s->sh.offset); av_freep(&s->sh.offset);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment