From 92147b6bec7f4602b921695c4bbbfd8c732ce2ef Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Fri, 1 May 2009 21:39:53 +0000 Subject: Use new packet reading API, fixes a memory leak. patch by Zdenek Kabelac, zdenek.kabelac gmail com Originally committed as revision 18728 to svn://svn.ffmpeg.org/ffmpeg/trunk --- tools/pktdumper.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tools') diff --git a/tools/pktdumper.c b/tools/pktdumper.c index 781a3c24fc..f7ac83d5f6 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); -- cgit v1.2.3