From 956a5f57b5fb3227ebbe5ccafc213087562e7e90 Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Sun, 3 Apr 2016 17:39:10 +0200 Subject: [PATCH] Fix a memory leak in muxing. --- httpd.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/httpd.cpp b/httpd.cpp index c861fd4..d6b1abd 100644 --- a/httpd.cpp +++ b/httpd.cpp @@ -224,6 +224,8 @@ void HTTPD::Mux::add_packet(const AVPacket &pkt, int64_t pts, int64_t dts) fprintf(stderr, "av_interleaved_write_frame() failed\n"); exit(1); } + + av_packet_unref(&pkt_copy); } HTTPD::Stream::Stream(AVOutputFormat *oformat, int width, int height) -- 2.39.2