From f7813a5324be39d13ab536c245d15dfc602a7849 Mon Sep 17 00:00:00 2001 From: Tim Redfern Date: Sun, 29 Dec 2013 12:19:38 +0000 Subject: basic type mechanism working --- ffmpeg/tools/graph2dot.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'ffmpeg/tools/graph2dot.c') 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; } -- cgit v1.2.3