summaryrefslogtreecommitdiff
path: root/tools/pktdumper.c
diff options
context:
space:
mode:
authorZdenek Kabelac <zdenek.kabelac@gmail.com>2009-05-01 21:39:53 +0000
committerDiego Biurrun <diego@biurrun.de>2009-05-01 21:39:53 +0000
commit92147b6bec7f4602b921695c4bbbfd8c732ce2ef (patch)
treee0da390216bdd1d2e2391e228f58bb7fed7f1f7f /tools/pktdumper.c
parent2e032b32df712e3a5a6bde26f35749eaf2b55e70 (diff)
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
Diffstat (limited to 'tools/pktdumper.c')
-rw-r--r--tools/pktdumper.c3
1 files changed, 3 insertions, 0 deletions
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);