diff --git a/ffmpeg.c b/ffmpeg.c index 8f6f039f91..8d727a3a52 100644 --- a/ffmpeg.c +++ b/ffmpeg.c @@ -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) {