diff options
author | Stefano Sabatini <stefasab@gmail.com> | 2012-01-12 00:30:24 +0100 |
---|---|---|
committer | Stefano Sabatini <stefasab@gmail.com> | 2012-01-12 10:39:24 +0100 |
commit | 4fd1e2e43233960f122a2c16841834d388d77c60 (patch) | |
tree | 4cf7c6528d585b3a5ad0aad2176ad557ac0ed5a3 /ffprobe.c | |
parent | 7328c2fc2184476235ebc9a9b9247a986bdea1cf (diff) | |
download | ffmpeg-4fd1e2e43233960f122a2c16841834d388d77c60.tar.gz |
ffprobe: fix leak in show_packets()
Call av_free_packets() at each demuxing loop iteration, not only when
decoding.
X-ColaCount: +10l
Diffstat (limited to 'ffprobe.c')
-rw-r--r-- | ffprobe.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |