summaryrefslogtreecommitdiff
path: root/tools/graph2dot.c
diff options
context:
space:
mode:
authorStefano Sabatini <stefasab@gmail.com>2011-09-17 01:16:09 +0200
committerStefano Sabatini <stefasab@gmail.com>2011-09-17 01:36:32 +0200
commitd93a448be3997ccb407b1666a59a377cc07dded5 (patch)
treeb4eae33b3941974c4a2198a10305f0555d6d840a /tools/graph2dot.c
parentdb79d0417396edc7ed0fc4fa438daa9526306fdf (diff)
graph2dot: show timebase information for audio links
Diffstat (limited to 'tools/graph2dot.c')
-rw-r--r--tools/graph2dot.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/graph2dot.c b/tools/graph2dot.c
index b67e597098..766afdb050 100644
--- a/tools/graph2dot.c
+++ b/tools/graph2dot.c
@@ -75,9 +75,10 @@ static void print_digraph(FILE *outfile, AVFilterGraph *graph)
} else if (link->type == AVMEDIA_TYPE_AUDIO) {
char buf[255];
av_get_channel_layout_string(buf, sizeof(buf), -1, link->channel_layout);
- fprintf(outfile, " [ label= \"fmt:%s sr:%"PRId64" cl:%s\" ]",
+ fprintf(outfile, " [ label= \"fmt:%s sr:%"PRId64" cl:%s tb:%d/%d\" ]",
av_get_sample_fmt_name(link->format),
- link->sample_rate, buf);
+ link->sample_rate, buf,
+ link->time_base.num, link->time_base.den);
}
fprintf(outfile, ";\n");
}