[SCM] libav/experimental: Print link audio format name in tools/graph2dot.
siretart at users.alioth.debian.org
siretart at users.alioth.debian.org
Sun Jun 30 17:21:48 UTC 2013
The following commit has been merged in the experimental branch:
commit b382d1e3e49143c7e9ebab3986dd84b64073de66
Author: Stefano Sabatini <stefano.sabatini-lala at poste.it>
Date: Wed Jan 12 18:25:03 2011 +0000
Print link audio format name in tools/graph2dot.
Originally committed as revision 26322 to svn://svn.ffmpeg.org/ffmpeg/trunk
diff --git a/tools/graph2dot.c b/tools/graph2dot.c
index 6715a30..5e0da9a 100644
--- a/tools/graph2dot.c
+++ b/tools/graph2dot.c
@@ -68,8 +68,9 @@ static void print_digraph(FILE *outfile, AVFilterGraph *graph)
fprintf(outfile, "\"%s\" -> \"%s\"", filter_ctx_label, dst_filter_ctx_label);
fprintf(outfile, " [ label= \"fmt:%s w:%d h:%d tb:%d/%d\" ];\n",
- av_pix_fmt_descriptors[link->format].name, link->w, link->h,
- link->time_base.num, link->time_base.den);
+ link->type == AVMEDIA_TYPE_VIDEO ? av_pix_fmt_descriptors[link->format].name :
+ link->type == AVMEDIA_TYPE_AUDIO ? av_get_sample_fmt_name(link->format) : "unknown",
+ link->w, link->h, link->time_base.num, link->time_base.den);
}
}
}
--
Libav/FFmpeg packaging
More information about the pkg-multimedia-commits
mailing list