diff options
author | Zdenek Kabelac <zdenek.kabelac@gmail.com> | 2009-05-01 21:39:53 +0000 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2009-05-01 21:39:53 +0000 |
commit | 92147b6bec7f4602b921695c4bbbfd8c732ce2ef (patch) | |
tree | e0da390216bdd1d2e2391e228f58bb7fed7f1f7f /tools/pktdumper.c | |
parent | 2e032b32df712e3a5a6bde26f35749eaf2b55e70 (diff) | |
download | ffmpeg-92147b6bec7f4602b921695c4bbbfd8c732ce2ef.tar.gz |
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.c | 3 |
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); |