summaryrefslogtreecommitdiff
path: root/tools/graph2dot.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2012-10-06 13:29:37 +0200
committerAnton Khirnov <anton@khirnov.net>2012-10-12 12:45:38 +0200
commitb7f1010c8fce09096057528f7cd29589ea1ae7df (patch)
tree0fcf97509bb39cc3fd1abe21f55b86791d16fca0 /tools/graph2dot.c
parentd2fcb356caf38c12b0fc9d8c5bac592a28b0f0f1 (diff)
downloadffmpeg-b7f1010c8fce09096057528f7cd29589ea1ae7df.tar.gz
tools: do not use av_pix_fmt_descriptors directly.
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];