Merge commit 'f0ca6ffa0ae5d5564516ee7a18aa1e234751444a'
[ffmpeg.git] / ffprobe.c
index 00584d2..02e2c48 100644 (file)
--- a/ffprobe.c
+++ b/ffprobe.c
@@ -2056,7 +2056,7 @@ static int read_interval_packets(WriterContext *w, AVFormatContext *fmt_ctx,
                 while (pkt1.size && process_frame(w, fmt_ctx, frame, &pkt1) > 0);
             }
         }
-        av_free_packet(&pkt);
+        av_packet_unref(&pkt);
     }
     av_init_packet(&pkt);
     pkt.data = NULL;