cosmetics: Drop particularly redundant silly comments
[ffmpeg.git] / avprobe.c
index a83fa68..2ab8ce0 100644 (file)
--- a/avprobe.c
+++ b/avprobe.c
@@ -589,8 +589,10 @@ static void show_packets(AVFormatContext *fmt_ctx)
 
     av_init_packet(&pkt);
     probe_array_header("packets", 0);
-    while (!av_read_frame(fmt_ctx, &pkt))
+    while (!av_read_frame(fmt_ctx, &pkt)) {
         show_packet(fmt_ctx, &pkt);
+        av_packet_unref(&pkt);
+    }
     probe_array_footer("packets", 0);
 }