X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=mux.cpp;fp=mux.cpp;h=184fa1e11d549f33b8be9bceae5895a365cb4c90;hb=1f1c3a3c29a80f7eb7fb261579b3b046d0034903;hp=7cd331408b5fabc9b117a14576b7b83c2f4b3007;hpb=4c878403cc781a0e591f1ee3a5a97f83c8fae279;p=nageru 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()) {