diff options
author | Diego Biurrun <diego@biurrun.de> | 2013-07-05 19:42:37 +0400 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2013-07-06 17:36:57 +0400 |
commit | cd7b6deeaaf1e9c771e998519554e75057c62580 (patch) | |
tree | 6b71c2a24140585ecec2fc894fb6cfe3e4e7e24e /tools/pktdumper.c | |
parent | 6516632967da5e6bd7d6136e8678f826669ed26e (diff) |
tools: Wording and formatting cosmetics
Diffstat (limited to 'tools/pktdumper.c')
-rw-r--r-- | tools/pktdumper.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tools/pktdumper.c b/tools/pktdumper.c index 98b9327ef4..c6398fe517 100644 --- a/tools/pktdumper.c +++ b/tools/pktdumper.c @@ -31,18 +31,18 @@ #include <io.h> #endif -#define FILENAME_BUF_SIZE 4096 - #include "libavutil/avstring.h" #include "libavutil/time.h" #include "libavformat/avformat.h" +#define FILENAME_BUF_SIZE 4096 #define PKTFILESUFF "_%08" PRId64 "_%02d_%010" PRId64 "_%06d_%c.bin" static int usage(int ret) { - fprintf(stderr, "dump (up to maxpkts) AVPackets as they are demuxed by libavformat.\n"); - fprintf(stderr, "each packet is dumped in its own file named like `basename file.ext`_$PKTNUM_$STREAMINDEX_$STAMP_$SIZE_$FLAGS.bin\n"); + fprintf(stderr, "Dump (up to maxpkts) AVPackets as they are demuxed by libavformat.\n"); + fprintf(stderr, "Each packet is dumped in its own file named like\n"); + fprintf(stderr, "$(basename file.ext)_$PKTNUM_$STREAMINDEX_$STAMP_$SIZE_$FLAGS.bin\n"); fprintf(stderr, "pktdumper [-nw] file [maxpkts]\n"); fprintf(stderr, "-n\twrite No file at all, only demux.\n"); fprintf(stderr, "-w\tWait at end of processing instead of quitting.\n"); @@ -79,7 +79,7 @@ int main(int argc, char **argv) if (strrchr(fntemplate, '.')) *strrchr(fntemplate, '.') = '\0'; if (strchr(fntemplate, '%')) { - fprintf(stderr, "can't use filenames containing '%%'\n"); + fprintf(stderr, "cannot use filenames containing '%%'\n"); return usage(1); } if (strlen(fntemplate) + sizeof(PKTFILESUFF) >= sizeof(fntemplate) - 1) { |