diff options
author | Anton Khirnov <anton@khirnov.net> | 2016-03-21 07:33:25 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2016-03-28 09:43:18 +0200 |
commit | 8229eff4b7a98ae5d85bb75f3bb072781b4a8ebe (patch) | |
tree | 4e7bfe5bd156622aa2dee181b7dc321007710ee8 /libavcodec/hevc.c | |
parent | fa936a307f5cddfc2664600157a8207ca8080af6 (diff) | |
download | ffmpeg-8229eff4b7a98ae5d85bb75f3bb072781b4a8ebe.tar.gz |
h2645_parse: add a function for uninitializing the packet
Diffstat (limited to 'libavcodec/hevc.c')
-rw-r--r-- | libavcodec/hevc.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/libavcodec/hevc.c b/libavcodec/hevc.c index 69c4f26aa6..72dea5a589 100644 --- a/libavcodec/hevc.c +++ b/libavcodec/hevc.c @@ -2798,10 +2798,7 @@ static av_cold int hevc_decode_free(AVCodecContext *avctx) for (i = 0; i < FF_ARRAY_ELEMS(s->ps.pps_list); i++) av_buffer_unref(&s->ps.pps_list[i]); - for (i = 0; i < s->pkt.nals_allocated; i++) - av_freep(&s->pkt.nals[i].rbsp_buffer); - av_freep(&s->pkt.nals); - s->pkt.nals_allocated = 0; + ff_h2645_packet_uninit(&s->pkt); return 0; } |