summaryrefslogtreecommitdiffstats
path: root/libavcodec/h2645_parse.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2016-03-21 07:33:25 +0100
committerAnton Khirnov <anton@khirnov.net>2016-03-28 09:43:18 +0200
commit8229eff4b7a98ae5d85bb75f3bb072781b4a8ebe (patch)
tree4e7bfe5bd156622aa2dee181b7dc321007710ee8 /libavcodec/h2645_parse.c
parentfa936a307f5cddfc2664600157a8207ca8080af6 (diff)
downloadffmpeg-streaming-8229eff4b7a98ae5d85bb75f3bb072781b4a8ebe.zip
ffmpeg-streaming-8229eff4b7a98ae5d85bb75f3bb072781b4a8ebe.tar.gz
h2645_parse: add a function for uninitializing the packet
Diffstat (limited to 'libavcodec/h2645_parse.c')
-rw-r--r--libavcodec/h2645_parse.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/libavcodec/h2645_parse.c b/libavcodec/h2645_parse.c
index 794c954..0064b7d 100644
--- a/libavcodec/h2645_parse.c
+++ b/libavcodec/h2645_parse.c
@@ -226,3 +226,12 @@ int ff_h2645_packet_split(H2645Packet *pkt, const uint8_t *buf, int length,
return 0;
}
+
+void ff_h2645_packet_uninit(H2645Packet *pkt)
+{
+ int i;
+ for (i = 0; i < pkt->nals_allocated; i++)
+ av_freep(&pkt->nals[i].rbsp_buffer);
+ av_freep(&pkt->nals);
+ pkt->nals_allocated = 0;
+}
OpenPOWER on IntegriCloud