aboutsummaryrefslogtreecommitdiff
path: root/tools/graph2dot.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/graph2dot.c')
-rw-r--r--tools/graph2dot.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/graph2dot.c b/tools/graph2dot.c
index e7f487d146..c0142ccd31 100644
--- a/tools/graph2dot.c
+++ b/tools/graph2dot.c
@@ -80,10 +80,10 @@ static void print_digraph(FILE *outfile, AVFilterGraph *graph)
fprintf(outfile, "\"%s\" -> \"%s\"",
filter_ctx_label, dst_filter_ctx_label);
if (link->type == AVMEDIA_TYPE_VIDEO) {
+ const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(link->format);
fprintf(outfile,
" [ label= \"fmt:%s w:%d h:%d tb:%d/%d\" ]",
- av_pix_fmt_descriptors[link->format].name,
- link->w, link->h, link->time_base.num,
+ desc->name, link->w, link->h, link->time_base.num,
link->time_base.den);
} else if (link->type == AVMEDIA_TYPE_AUDIO) {
char buf[255];