Browse Source

graph2dot: use avfilter_pad_get_name accessor function

Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
tags/n2.8
Andreas Cadhalpun 10 years ago
parent
commit
96f5fdebc3
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      tools/graph2dot.c

+ 2
- 1
tools/graph2dot.c View File

@@ -79,7 +79,8 @@ static void print_digraph(FILE *outfile, AVFilterGraph *graph)


fprintf(outfile, "\"%s\" -> \"%s\" [ label= \"inpad:%s -> outpad:%s\\n", fprintf(outfile, "\"%s\" -> \"%s\" [ label= \"inpad:%s -> outpad:%s\\n",
filter_ctx_label, dst_filter_ctx_label, filter_ctx_label, dst_filter_ctx_label,
link->srcpad->name, link->dstpad->name);
avfilter_pad_get_name(link->srcpad, 0),
avfilter_pad_get_name(link->dstpad, 0));


if (link->type == AVMEDIA_TYPE_VIDEO) { if (link->type == AVMEDIA_TYPE_VIDEO) {
const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(link->format); const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(link->format);


Loading…
Cancel
Save