aboutsummaryrefslogtreecommitdiffstats
path: root/pktdumper.c
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2005-12-17 18:14:38 +0000
committerDiego Biurrun <diego@biurrun.de>2005-12-17 18:14:38 +0000
commit115329f16062074e11ccf3b89ead6176606c9696 (patch)
treee98aa993905a702688bf821737ab9a443969fc28 /pktdumper.c
parentd76319b1ab716320f6e6a4d690b85fe4504ebd5b (diff)
downloadffmpeg-115329f16062074e11ccf3b89ead6176606c9696.tar.gz
COSMETICS: Remove all trailing whitespace.
Originally committed as revision 4749 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'pktdumper.c')
-rw-r--r--pktdumper.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/pktdumper.c b/pktdumper.c
index 48ed6ea167..701e8014d0 100644
--- a/pktdumper.c
+++ b/pktdumper.c
@@ -29,7 +29,7 @@ int main(int argc, char **argv)
int dontquit = 0;
int nowrite = 0;
int err;
-
+
if ((argc > 1) && !strncmp(argv[1], "-", 1)) {
if (strchr(argv[1], 'w'))
dontquit = 1;
@@ -57,24 +57,24 @@ int main(int argc, char **argv)
}
strcat(fntemplate, PKTFILESUFF);
printf("FNTEMPLATE: '%s'\n", fntemplate);
-
+
// register all file formats
av_register_all();
-
+
err = av_open_input_file(&fctx, argv[1], NULL, 0, NULL);
if (err < 0) {
fprintf(stderr, "av_open_input_file: error %d\n", err);
return 1;
}
-
+
err = av_find_stream_info(fctx);
if (err < 0) {
fprintf(stderr, "av_find_stream_info: error %d\n", err);
return 1;
}
-
+
av_init_packet(&pkt);
-
+
while ((err = av_read_frame(fctx, &pkt)) >= 0) {
int fd;
snprintf(pktfilename, PATH_MAX-1, fntemplate, pktnum, pkt.stream_index, pkt.pts, pkt.size, (pkt.flags & PKT_FLAG_KEY)?'K':'_');
@@ -89,9 +89,9 @@ int main(int argc, char **argv)
if (maxpkts && (pktnum >= maxpkts))
break;
}
-
+
while (dontquit)
sleep(60);
-
+
return 0;
}