| 82 | } |
| 83 | |
| 84 | int avfilter_link(AVFilterContext *src, unsigned srcpad, |
| 85 | AVFilterContext *dst, unsigned dstpad) |
| 86 | { |
| 87 | AVFilterLink *link; |
| 88 | |
| 89 | if(src->output_count <= srcpad || dst->input_count <= dstpad || |
| 90 | src->outputs[srcpad] || dst->inputs[dstpad]) |
| 91 | return -1; |
| 92 | |
| 93 | src->outputs[srcpad] = |
| 94 | dst-> inputs[dstpad] = link = av_mallocz(sizeof(AVFilterLink)); |
| 95 | |
| 96 | link->src = src; |
| 97 | link->dst = dst; |
| 98 | link->srcpad = srcpad; |
| 99 | link->dstpad = dstpad; |
| 100 | link->format = PIX_FMT_NONE; |
| 101 | |
| 102 | return 0; |
| 103 | } |
| 104 | |
| 105 | int avfilter_insert_filter(AVFilterLink *link, AVFilterContext *filt, |
| 106 | unsigned in, unsigned out) |
no test coverage detected