From 1f1c3a3c29a80f7eb7fb261579b3b046d0034903 Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Thu, 5 May 2016 11:29:14 +0200 Subject: [PATCH] Fix a memory leak in interleaving. --- mux.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mux.cpp b/mux.cpp index 7cd3314..184fa1e 100644 --- a/mux.cpp +++ b/mux.cpp @@ -145,7 +145,7 @@ void Mux::add_interleaved_packet(const AVPacket &pkt) AVPacket *queued_pkt = waiting_packets.front(); waiting_packets.pop(); write_packet_with_signal(*queued_pkt); - av_packet_unref(queued_pkt); + av_packet_free(&queued_pkt); } if (waiting_packets.empty()) { -- 2.39.2