Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas George <nicolas.george@normalesup.org>2012-05-19 20:12:09 +0400
committerMichael Niedermayer <michaelni@gmx.at>2012-05-19 21:23:37 +0400
commit3d2515a8f3ba35f10a69d077936770955b5394da (patch)
treec9b1f71de0246889bd775abb7fd1dede74d8377a /libavfilter
parent5ac9ef6493e7bf4c66cd16f7555ecf7d6929ebf6 (diff)
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>
Diffstat (limited to 'libavfilter')
-rw-r--r--libavfilter/f_split.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/f_split.c b/libavfilter/f_split.c
index 2015980452..212aecdebf 100644
--- a/libavfilter/f_split.c
+++ b/libavfilter/f_split.c
@@ -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);