mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
ffprobe: fix leak in show_packets()
Call av_free_packets() at each demuxing loop iteration, not only when decoding. X-ColaCount: +10l
This commit is contained in:
parent
7328c2fc21
commit
4fd1e2e432
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user