From: Steinar H. Gunderson Date: Thu, 5 May 2016 09:29:14 +0000 (+0200) Subject: Fix a memory leak in interleaving. X-Git-Tag: 1.3.0~18 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=1f1c3a3c29a80f7eb7fb261579b3b046d0034903;p=nageru Fix a memory leak in interleaving. --- 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()) {