From 3c3f8316bc418e7facb1ef3bd37fea9098114a47 Mon Sep 17 00:00:00 2001 From: diego Date: Fri, 1 May 2009 21:39:53 +0000 Subject: [PATCH] Use new packet reading API, fixes a memory leak. patch by Zdenek Kabelac, zdenek.kabelac gmail com git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18728 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b --- tools/pktdumper.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/pktdumper.c b/tools/pktdumper.c index 781a3c24f..f7ac83d5f 100644 --- a/tools/pktdumper.c +++ b/tools/pktdumper.c @@ -107,11 +107,14 @@ int main(int argc, char **argv) write(fd, pkt.data, pkt.size); close(fd); } + av_free_packet(&pkt); pktnum++; if (maxpkts && (pktnum >= maxpkts)) break; } + av_close_input_file(fctx); + while (donotquit) sleep(60); -- 2.39.2