summaryrefslogtreecommitdiff
path: root/tools/pktdumper.c
diff options
context:
space:
mode:
authorMans Rullgard <mans@mansr.com>2012-06-21 20:31:44 +0100
committerMans Rullgard <mans@mansr.com>2012-06-22 17:15:36 +0100
commit896bb0d742a513b1bb5b9a770dbffd2cd436bed6 (patch)
treebc133c53f4cd418c8b42c6d12958e719900ebb6e /tools/pktdumper.c
parentd3d3a32c9d389cc0d6a91b389988a225ae01c948 (diff)
Replace usleep() calls with av_usleep()
This reduces the dependency on unistd.h which is not available on all systems. Signed-off-by: Mans Rullgard <mans@mansr.com>
Diffstat (limited to 'tools/pktdumper.c')
-rw-r--r--tools/pktdumper.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/pktdumper.c b/tools/pktdumper.c
index c3a3a218ef..d23cd9674f 100644
--- a/tools/pktdumper.c
+++ b/tools/pktdumper.c
@@ -25,6 +25,7 @@
#include <string.h>
#include <unistd.h>
+#include "libavutil/time.h"
#include "libavformat/avformat.h"
#define PKTFILESUFF "_%08" PRId64 "_%02d_%010" PRId64 "_%06d_%c.bin"
@@ -122,7 +123,7 @@ int main(int argc, char **argv)
avformat_close_input(&fctx);
while (donotquit)
- usleep(60 * 1000000);
+ av_usleep(60 * 1000000);
return 0;
}