Unified · Split
| @@ -67,29 +67,27 @@ static void print_digraph(FILE *outfile, AVFilterGraph *graph) · 66 unmodified lines | |||
| 67 | dst_filter_ctx->name, | 67 | dst_filter_ctx->name, |
| 68 | dst_filter_ctx->filter->name); | 68 | dst_filter_ctx->filter->name); |
| 69 | 69 | ||
| 70 | fprintf(outfile, "\"%s\" -> \"%s\"", | 70 | fprintf(outfile, "\"%s\" -> \"%s\" [ label= \"inpad:%s ", |
| 71 | filter_ctx_label, dst_filter_ctx_label); | 71 | filter_ctx_label, dst_filter_ctx_label, link->srcpad->name); |
| 72 | |||
| 72 | if (link->type == AVMEDIA_TYPE_VIDEO) { | 73 | if (link->type == AVMEDIA_TYPE_VIDEO) { |
| 73 | fprintf(outfile, | 74 | fprintf(outfile, |
| 74 | " [ label= \"inpad:%s fmt:%s w:%d h:%d tb:%d/%d outpad:%s\" ]", | 75 | "fmt:%s w:%d h:%d tb:%d/%d", |
| 75 | link->srcpad->name, | ||
| 76 | av_pix_fmt_descriptors[link->format].name, | 76 | av_pix_fmt_descriptors[link->format].name, |
| 77 | link->w, link->h, link->time_base.num, | 77 | link->w, link->h, |
| 78 | link->time_base.den, | 78 | link->time_base.num, link->time_base.den); |
| 79 | link->dstpad->name); | ||
| 80 | } else if (link->type == AVMEDIA_TYPE_AUDIO) { | 79 | } else if (link->type == AVMEDIA_TYPE_AUDIO) { |
| 81 | char buf[255]; | 80 | char buf[255]; |
| 82 | av_get_channel_layout_string(buf, sizeof(buf), -1, | 81 | av_get_channel_layout_string(buf, sizeof(buf), -1, |
| 83 | link->channel_layout); | 82 | link->channel_layout); |
| 84 | fprintf(outfile, | 83 | fprintf(outfile, |
| 85 | " [ label= \"inpad:%s fmt:%s sr:%"PRId64" cl:%s tb:%d/%d outpad:%s\" ]", | 84 | "fmt:%s sr:%"PRId64" cl:%s tb:%d/%d", |
| 86 | link->srcpad->name, | ||
| 87 | av_get_sample_fmt_name(link->format), | 85 | av_get_sample_fmt_name(link->format), |
| 88 | link->sample_rate, buf, | 86 | link->sample_rate, buf, |
| 89 | link->time_base.num, link->time_base.den, | 87 | link->time_base.num, link->time_base.den); |
| 90 | link->dstpad->name); | ||
| 91 | } | 88 | } |
| 92 | fprintf(outfile, ";\n"); | 89 | |
| 90 | fprintf(outfile, " outpad:%s\" ];\n", link->dstpad->name); | ||
| 93 | } | 91 | } |
| 94 | } | 92 | } |
| 95 | } | 93 | } |