summaryrefslogtreecommitdiff
path: root/tools/graph2dot.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/graph2dot.c')
-rw-r--r--tools/graph2dot.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/graph2dot.c b/tools/graph2dot.c
index c4a50a8278..4a30beb754 100644
--- a/tools/graph2dot.c
+++ b/tools/graph2dot.c
@@ -82,9 +82,10 @@ static void print_digraph(FILE *outfile, AVFilterGraph *graph)
link->srcpad->name, link->dstpad->name);
if (link->type == AVMEDIA_TYPE_VIDEO) {
+ const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(link->format);
fprintf(outfile,
"fmt:%s w:%d h:%d tb:%d/%d",
- av_pix_fmt_descriptors[link->format].name,
+ desc->name,
link->w, link->h,
link->time_base.num, link->time_base.den);
} else if (link->type == AVMEDIA_TYPE_AUDIO) {