]> git.sesse.net Git - nageru/commitdiff
Fix a memory leak in audio encoding.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Sat, 14 Nov 2015 13:14:52 +0000 (14:14 +0100)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Sat, 14 Nov 2015 13:14:52 +0000 (14:14 +0100)
h264encode.cpp

index 04ad66995955fa01b10ec0c4cc793794c6762d6f..44867cc6d1eda148f80fb09ece9911bc842b830a 100644 (file)
@@ -1725,6 +1725,7 @@ int H264Encoder::save_codeddata(storage_task task)
         }
         // TODO: Delayed frames.
         avcodec_free_frame(&frame);
+        av_free_packet(&pkt);
     }
 
 #if 0