avformat/mux: use av_packet_alloc() to allocate packets

Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
James Almer
2021-01-30 15:04:24 -03:00
parent 2995a1f294
commit 9066969713
4 changed files with 32 additions and 20 deletions

View File

@@ -4451,6 +4451,7 @@ void avformat_free_context(AVFormatContext *s)
av_freep(&s->chapters);
av_dict_free(&s->metadata);
av_dict_free(&s->internal->id3v2_meta);
av_packet_free(&s->internal->pkt);
av_freep(&s->streams);
flush_packet_queue(s);
av_freep(&s->internal);