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