[FFmpeg-cvslog] r26322 - trunk/tools/graph2dot.c

stefano subversion
Wed Jan 12 19:25:03 CET 2011


Author: stefano
Date: Wed Jan 12 19:25:03 2011
New Revision: 26322

Log:
Print link audio format name in tools/graph2dot.

Modified:
   trunk/tools/graph2dot.c

Modified: trunk/tools/graph2dot.c
==============================================================================
--- trunk/tools/graph2dot.c	Wed Jan 12 17:40:28 2011	(r26321)
+++ trunk/tools/graph2dot.c	Wed Jan 12 19:25:03 2011	(r26322)
@@ -68,8 +68,9 @@ static void print_digraph(FILE *outfile,
 
                 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);
             }
         }
     }



More information about the ffmpeg-cvslog mailing list