[FFmpeg-cvslog] r18728 - trunk/tools/pktdumper.c
diego
subversion
Fri May 1 23:39:55 CEST 2009
Author: diego
Date: Fri May 1 23:39:53 2009
New Revision: 18728
Log:
Use new packet reading API, fixes a memory leak.
patch by Zdenek Kabelac, zdenek.kabelac gmail com
Modified:
trunk/tools/pktdumper.c
Modified: trunk/tools/pktdumper.c
==============================================================================
--- trunk/tools/pktdumper.c Fri May 1 23:35:01 2009 (r18727)
+++ trunk/tools/pktdumper.c Fri May 1 23:39:53 2009 (r18728)
@@ -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);
More information about the ffmpeg-cvslog
mailing list