summaryrefslogtreecommitdiff
path: root/ffmpeg/tools/graph2dot.c
diff options
context:
space:
mode:
authorTim Redfern <tim@eclectronics.org>2013-12-29 12:19:38 +0000
committerTim Redfern <tim@eclectronics.org>2013-12-29 12:19:38 +0000
commitf7813a5324be39d13ab536c245d15dfc602a7849 (patch)
treefad99148b88823d34a5df2f0a25881a002eb291b /ffmpeg/tools/graph2dot.c
parentb7a5a477b8ff4d4e3028b9dfb9a9df0a41463f92 (diff)
basic type mechanism working
Diffstat (limited to 'ffmpeg/tools/graph2dot.c')
-rw-r--r--ffmpeg/tools/graph2dot.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/ffmpeg/tools/graph2dot.c b/ffmpeg/tools/graph2dot.c
index d53642f..964322d 100644
--- a/ffmpeg/tools/graph2dot.c
+++ b/ffmpeg/tools/graph2dot.c
@@ -28,7 +28,7 @@
#include "libavutil/channel_layout.h"
#include "libavutil/mem.h"
#include "libavutil/pixdesc.h"
-#include "libavfilter/avfiltergraph.h"
+#include "libavfilter/avfilter.h"
#if !HAVE_GETOPT
#include "compat/getopt.c"
@@ -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"
@@ -66,7 +66,7 @@ static void print_digraph(FILE *outfile, AVFilterGraph *graph)
filter_ctx->name,
filter_ctx->filter->name);
- for (j = 0; j < filter_ctx->output_count; j++) {
+ for (j = 0; j < filter_ctx->nb_outputs; j++) {
AVFilterLink *link = filter_ctx->outputs[j];
if (link) {
char dst_filter_ctx_label[128];
@@ -137,7 +137,7 @@ int main(int argc, char **argv)
infilename = "/dev/stdin";
infile = fopen(infilename, "r");
if (!infile) {
- fprintf(stderr, "Impossible to open input file '%s': %s\n",
+ fprintf(stderr, "Failed to open input file '%s': %s\n",
infilename, strerror(errno));
return 1;
}
@@ -146,7 +146,7 @@ int main(int argc, char **argv)
outfilename = "/dev/stdout";
outfile = fopen(outfilename, "w");
if (!outfile) {
- fprintf(stderr, "Impossible to open output file '%s': %s\n",
+ fprintf(stderr, "Failed to open output file '%s': %s\n",
outfilename, strerror(errno));
return 1;
}
@@ -179,7 +179,7 @@ int main(int argc, char **argv)
avfilter_register_all();
if (avfilter_graph_parse(graph, graph_string, NULL, NULL, NULL) < 0) {
- fprintf(stderr, "Impossible to parse the graph description\n");
+ fprintf(stderr, "Failed to parse the graph description\n");
return 1;
}