|
|
@ -26,6 +26,7 @@ |
|
|
|
#include <stdio.h> |
|
|
|
#include <stdio.h> |
|
|
|
|
|
|
|
|
|
|
|
#include "libavutil/attributes.h" |
|
|
|
#include "libavutil/attributes.h" |
|
|
|
|
|
|
|
#include "libavutil/avstring.h" |
|
|
|
#include "libavutil/internal.h" |
|
|
|
#include "libavutil/internal.h" |
|
|
|
#include "libavutil/mem.h" |
|
|
|
#include "libavutil/mem.h" |
|
|
|
#include "libavutil/opt.h" |
|
|
|
#include "libavutil/opt.h" |
|
|
@ -48,12 +49,10 @@ static av_cold int split_init(AVFilterContext *ctx) |
|
|
|
int i, ret; |
|
|
|
int i, ret; |
|
|
|
|
|
|
|
|
|
|
|
for (i = 0; i < s->nb_outputs; i++) { |
|
|
|
for (i = 0; i < s->nb_outputs; i++) { |
|
|
|
char name[32]; |
|
|
|
|
|
|
|
AVFilterPad pad = { 0 }; |
|
|
|
AVFilterPad pad = { 0 }; |
|
|
|
|
|
|
|
|
|
|
|
snprintf(name, sizeof(name), "output%d", i); |
|
|
|
|
|
|
|
pad.type = ctx->filter->inputs[0].type; |
|
|
|
pad.type = ctx->filter->inputs[0].type; |
|
|
|
pad.name = av_strdup(name); |
|
|
|
pad.name = av_asprintf("output%d", i); |
|
|
|
if (!pad.name) |
|
|
|
if (!pad.name) |
|
|
|
return AVERROR(ENOMEM); |
|
|
|
return AVERROR(ENOMEM); |
|
|
|
|
|
|
|
|
|
|
|