Merge commit 'f0ca6ffa0ae5d5564516ee7a18aa1e234751444a'
authorHendrik Leppkes <h.leppkes@gmail.com>
Tue, 27 Oct 2015 13:10:04 +0000 (14:10 +0100)
committerHendrik Leppkes <h.leppkes@gmail.com>
Tue, 27 Oct 2015 13:10:04 +0000 (14:10 +0100)
* commit 'f0ca6ffa0ae5d5564516ee7a18aa1e234751444a':
  avprobe: Unref the packet once it is used

Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
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;