diff options
author | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2012-02-21 00:20:04 +0400 |
---|---|---|
committer | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2012-02-21 00:23:00 +0400 |
commit | 6a3f1726af914183ee9b735b6b28e79f0383058d (patch) | |
tree | f0839d90263cff42d0cc0371ecb3ca603b519d66 | |
parent | a297856b8ced5a01efff26d13ea68a41d2021b02 (diff) |
Add missing av_free_packet.
Fixes memory leak when encoding at least with mpegvideo using the
new encode2 function.
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
-rw-r--r-- | ffmpeg.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -1633,6 +1633,7 @@ static void do_video_out(AVFormatContext *s, OutputStream *ost, write_frame(s, &pkt, ost); frame_size = pkt.size; video_size += pkt.size; + av_free_packet(&pkt); /* if two pass, output log */ if (ost->logfile && enc->stats_out) { |