[libav-commits] graph2dot: fix printf format specifier

Diego Biurrun git at libav.org
Wed Jul 4 18:13:31 CEST 2012


Module: libav
Branch: master
Commit: fa2d7473528c601c1076957d474ab7550d588828

Author:    Diego Biurrun <diego at biurrun.de>
Committer: Diego Biurrun <diego at biurrun.de>
Date:      Wed Jul  4 16:55:13 2012 +0200

graph2dot: fix printf format specifier

tools/graph2dot.c:85: warning: format ‘%lld’ expects type ‘long long int’, but argument 4 has type ‘int’

---

 tools/graph2dot.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/tools/graph2dot.c b/tools/graph2dot.c
index a52416d..6ea2f32 100644
--- a/tools/graph2dot.c
+++ b/tools/graph2dot.c
@@ -80,7 +80,7 @@ static void print_digraph(FILE *outfile, AVFilterGraph *graph)
                     av_get_channel_layout_string(buf, sizeof(buf), -1,
                                                  link->channel_layout);
                     fprintf(outfile,
-                            " [ label= \"fmt:%s sr:%"PRId64 " cl:%s\" ]",
+                            " [ label= \"fmt:%s sr:%d cl:%s\" ]",
                             av_get_sample_fmt_name(link->format),
                             link->sample_rate, buf);
                 }



More information about the libav-commits mailing list