summaryrefslogtreecommitdiffstats
path: root/libavcodec/h2645_parse.c
diff options
context:
space:
mode:
authorDerek Buitenhuis <derek.buitenhuis@gmail.com>2016-04-26 14:01:45 +0100
committerDerek Buitenhuis <derek.buitenhuis@gmail.com>2016-04-26 14:01:45 +0100
commit8e73574d4f176d166f08959f6c84e6bc3ffef79c (patch)
tree710197681d52960fd9cc2a093314d10f4e24c91c /libavcodec/h2645_parse.c
parent3c4ca4c5d7992e545a6cbad440287f9e27f1a696 (diff)
parent8229eff4b7a98ae5d85bb75f3bb072781b4a8ebe (diff)
downloadffmpeg-streaming-8e73574d4f176d166f08959f6c84e6bc3ffef79c.zip
ffmpeg-streaming-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/h2645_parse.c')
-rw-r--r--libavcodec/h2645_parse.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/libavcodec/h2645_parse.c b/libavcodec/h2645_parse.c
index 373f1d3..58c9118 100644
--- a/libavcodec/h2645_parse.c
+++ b/libavcodec/h2645_parse.c
@@ -295,3 +295,13 @@ 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[i].skipped_bytes_pos);
+ }
+ av_freep(&pkt->nals);
+ pkt->nals_allocated = 0;
+}
OpenPOWER on IntegriCloud