From b7f1010c8fce09096057528f7cd29589ea1ae7df Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Sat, 6 Oct 2012 13:29:37 +0200 Subject: tools: do not use av_pix_fmt_descriptors directly. --- tools/graph2dot.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tools') 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]; -- cgit v1.2.3