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;