mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2025-10-13 12:34:26 +08:00
Merge commit '8229eff4b7a98ae5d85bb75f3bb072781b4a8ebe'
* commit '8229eff4b7a98ae5d85bb75f3bb072781b4a8ebe': h2645_parse: add a function for uninitializing the packet Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user