Revision b382d1e3

View differences:

tools/graph2dot.c
68 68

  
69 69
                fprintf(outfile, "\"%s\" -> \"%s\"", filter_ctx_label, dst_filter_ctx_label);
70 70
                fprintf(outfile, " [ label= \"fmt:%s w:%d h:%d tb:%d/%d\" ];\n",
71
                        av_pix_fmt_descriptors[link->format].name, link->w, link->h,
72
                        link->time_base.num, link->time_base.den);
71
                        link->type == AVMEDIA_TYPE_VIDEO ? av_pix_fmt_descriptors[link->format].name :
72
                        link->type == AVMEDIA_TYPE_AUDIO ? av_get_sample_fmt_name(link->format) : "unknown",
73
                        link->w, link->h, link->time_base.num, link->time_base.den);
73 74
            }
74 75
        }
75 76
    }

Also available in: Unified diff