mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-11-27 05:20:48 +00:00
f_split: fix output type.
The previous version checked the filter context name, instead of checking the filter name. The new version just uses the same type as the input. Signed-off-by: Nicolas George <nicolas.george@normalesup.org>
This commit is contained in:
parent
5ac9ef6493
commit
3d2515a8f3
@ -44,7 +44,7 @@ static int split_init(AVFilterContext *ctx, const char *args, void *opaque)
|
||||
AVFilterPad pad = { 0 };
|
||||
|
||||
snprintf(name, sizeof(name), "output%d", i);
|
||||
pad.type = !strcmp(ctx->name, "split") ? AVMEDIA_TYPE_VIDEO : AVMEDIA_TYPE_AUDIO;
|
||||
pad.type = ctx->filter->inputs[0].type;
|
||||
pad.name = av_strdup(name);
|
||||
|
||||
avfilter_insert_outpad(ctx, i, &pad);
|
||||
|
Loading…
Reference in New Issue
Block a user