From 69d5a2b610c8e05ad5a813c8f13aa919f42c1d76 Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Sat, 14 Nov 2015 14:14:52 +0100 Subject: [PATCH] Fix a memory leak in audio encoding. --- h264encode.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/h264encode.cpp b/h264encode.cpp index 04ad669..44867cc 100644 --- a/h264encode.cpp +++ b/h264encode.cpp @@ -1725,6 +1725,7 @@ int H264Encoder::save_codeddata(storage_task task) } // TODO: Delayed frames. avcodec_free_frame(&frame); + av_free_packet(&pkt); } #if 0 -- 2.39.2