diff options
author | Derek Buitenhuis <derek.buitenhuis@gmail.com> | 2016-04-26 14:01:45 +0100 |
---|---|---|
committer | Derek Buitenhuis <derek.buitenhuis@gmail.com> | 2016-04-26 14:01:45 +0100 |
commit | 8e73574d4f176d166f08959f6c84e6bc3ffef79c (patch) | |
tree | 710197681d52960fd9cc2a093314d10f4e24c91c /libavcodec/hevc.c | |
parent | 3c4ca4c5d7992e545a6cbad440287f9e27f1a696 (diff) | |
parent | 8229eff4b7a98ae5d85bb75f3bb072781b4a8ebe (diff) | |
download | ffmpeg-8e73574d4f176d166f08959f6c84e6bc3ffef79c.tar.gz |
Merge commit '8229eff4b7a98ae5d85bb75f3bb072781b4a8ebe'
* commit '8229eff4b7a98ae5d85bb75f3bb072781b4a8ebe':
h2645_parse: add a function for uninitializing the packet
Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
Diffstat (limited to 'libavcodec/hevc.c')
-rw-r--r-- | libavcodec/hevc.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/libavcodec/hevc.c b/libavcodec/hevc.c index f012c41926..27b1640c08 100644 --- a/libavcodec/hevc.c +++ b/libavcodec/hevc.c @@ -3111,12 +3111,7 @@ static av_cold int hevc_decode_free(AVCodecContext *avctx) s->HEVClc = NULL; av_freep(&s->HEVClcList[0]); - for (i = 0; i < s->pkt.nals_allocated; i++) { - av_freep(&s->pkt.nals[i].rbsp_buffer); - av_freep(&s->pkt.nals[i].skipped_bytes_pos); - } - av_freep(&s->pkt.nals); - s->pkt.nals_allocated = 0; + ff_h2645_packet_uninit(&s->pkt); return 0; } |