[FFmpeg-devel] [PATCH 2/9] Make graph2dot print information related to the pads timebase.

Stefano Sabatini stefano.sabatini-lala
Wed Oct 6 20:09:45 CEST 2010


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

diff --git a/tools/graph2dot.c b/tools/graph2dot.c
index 57a25a7..cd00e03 100644
--- a/tools/graph2dot.c
+++ b/tools/graph2dot.c
@@ -67,8 +67,10 @@ static void print_digraph(FILE *outfile, AVFilterGraph *graph)
                          dst_filter_ctx->filter->name);
 
                 fprintf(outfile, "\"%s\" -> \"%s\"", filter_ctx_label, dst_filter_ctx_label);
-                fprintf(outfile, " [ label= \"fmt:%s w:%d h:%d\"];\n",
-                        av_pix_fmt_descriptors[link->format].name, link->w, link->h);
+                fprintf(outfile, " [ label= \"stb:%d/%d fmt:%s w:%d h:%d dtb:%d/%d\" ];\n",
+                        link->srcpad->time_base.num, link->srcpad->time_base.den,
+                        av_pix_fmt_descriptors[link->format].name, link->w, link->h,
+                        link->dstpad->time_base.num, link->dstpad->time_base.den);
             }
         }
     }
-- 
1.7.1




More information about the ffmpeg-devel mailing list