]> git.sesse.net Git - nageru/commitdiff
Fix a memory leak in interleaving.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Thu, 5 May 2016 09:29:14 +0000 (11:29 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Thu, 5 May 2016 09:29:14 +0000 (11:29 +0200)
mux.cpp

diff --git a/mux.cpp b/mux.cpp
index 7cd331408b5fabc9b117a14576b7b83c2f4b3007..184fa1e11d549f33b8be9bceae5895a365cb4c90 100644 (file)
--- 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()) {