Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
FFmpeg
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
libremedia
Tethys
FFmpeg
Commits
cd7b6dee
Commit
cd7b6dee
authored
11 years ago
by
Diego Biurrun
Browse files
Options
Downloads
Patches
Plain Diff
tools: Wording and formatting cosmetics
parent
65166329
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
tools/graph2dot.c
+4
-4
4 additions, 4 deletions
tools/graph2dot.c
tools/pktdumper.c
+5
-5
5 additions, 5 deletions
tools/pktdumper.c
with
9 additions
and
9 deletions
tools/graph2dot.c
+
4
−
4
View file @
cd7b6dee
...
...
@@ -36,7 +36,7 @@
static
void
usage
(
void
)
{
printf
(
"Convert a libavfilter graph to a dot file
\n
"
);
printf
(
"Convert a libavfilter graph to a dot file
.
\n
"
);
printf
(
"Usage: graph2dot [OPTIONS]
\n
"
);
printf
(
"
\n
"
"Options:
\n
"
...
...
@@ -133,7 +133,7 @@ int main(int argc, char **argv)
infilename
=
"/dev/stdin"
;
infile
=
fopen
(
infilename
,
"r"
);
if
(
!
infile
)
{
fprintf
(
stderr
,
"
Impossib
le to open input file '%s': %s
\n
"
,
fprintf
(
stderr
,
"
Fai
le
d
to open input file '%s': %s
\n
"
,
infilename
,
strerror
(
errno
));
return
1
;
}
...
...
@@ -142,7 +142,7 @@ int main(int argc, char **argv)
outfilename
=
"/dev/stdout"
;
outfile
=
fopen
(
outfilename
,
"w"
);
if
(
!
outfile
)
{
fprintf
(
stderr
,
"
Impossib
le to open output file '%s': %s
\n
"
,
fprintf
(
stderr
,
"
Fai
le
d
to open output file '%s': %s
\n
"
,
outfilename
,
strerror
(
errno
));
return
1
;
}
...
...
@@ -175,7 +175,7 @@ int main(int argc, char **argv)
avfilter_register_all
();
if
(
avfilter_graph_parse
(
graph
,
graph_string
,
NULL
,
NULL
,
NULL
)
<
0
)
{
fprintf
(
stderr
,
"
Impossib
le to parse the graph description
\n
"
);
fprintf
(
stderr
,
"
Fai
le
d
to parse the graph description
\n
"
);
return
1
;
}
...
...
This diff is collapsed.
Click to expand it.
tools/pktdumper.c
+
5
−
5
View file @
cd7b6dee
...
...
@@ -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
\t
write No file at all, only demux.
\n
"
);
fprintf
(
stderr
,
"-w
\t
Wait 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
,
"can
no
t use filenames containing '%%'
\n
"
);
return
usage
(
1
);
}
if
(
strlen
(
fntemplate
)
+
sizeof
(
PKTFILESUFF
)
>=
sizeof
(
fntemplate
)
-
1
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment