[FFmpeg-cvslog] ffprobe: fix leak in show_packets()
Stefano Sabatini
git at videolan.org
Thu Jan 12 10:45:07 CET 2012
ffmpeg | branch: master | Stefano Sabatini <stefasab at gmail.com> | Thu Jan 12 00:30:24 2012 +0100| [4fd1e2e43233960f122a2c16841834d388d77c60] | committer: Stefano Sabatini
ffprobe: fix leak in show_packets()
Call av_free_packets() at each demuxing loop iteration, not only when
decoding.
X-ColaCount: +10l
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=4fd1e2e43233960f122a2c16841834d388d77c60
---
ffprobe.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/ffprobe.c b/ffprobe.c
index 44f2a15..485950d 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;
More information about the ffmpeg-cvslog
mailing list