graph2dot: use avfilter_pad_get_name accessor function

Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
pull/146/head
Andreas Cadhalpun 9 years ago
parent e23a01c06d
commit 96f5fdebc3
  1. 3
      tools/graph2dot.c

@ -79,7 +79,8 @@ static void print_digraph(FILE *outfile, AVFilterGraph *graph)
fprintf(outfile, "\"%s\" -> \"%s\" [ label= \"inpad:%s -> outpad:%s\\n",
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) {
const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(link->format);

Loading…
Cancel
Save