From 4fd1e2e43233960f122a2c16841834d388d77c60 Mon Sep 17 00:00:00 2001 From: Stefano Sabatini Date: Thu, 12 Jan 2012 00:30:24 +0100 Subject: ffprobe: fix leak in show_packets() Call av_free_packets() at each demuxing loop iteration, not only when decoding. X-ColaCount: +10l --- ffprobe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ffprobe.c') diff --git a/ffprobe.c b/ffprobe.c index 44f2a1553a..485950dff7 100644 --- a/ffprobe.c +++ b/ffprobe.c @@ -1349,8 +1349,8 @@ static void show_packets(WriterContext *w, AVFormatContext *fmt_ctx) if (do_show_frames && get_video_frame(fmt_ctx, &frame, &pkt)) { show_frame(w, &frame, fmt_ctx->streams[pkt.stream_index]); - av_free_packet(&pkt); } + av_free_packet(&pkt); } av_init_packet(&pkt); pkt.data = NULL; -- cgit v1.2.3