[FFmpeg-cvslog] f_split: fix output type.

Nicolas George git at videolan.org
Sat May 19 19:28:55 CEST 2012


ffmpeg | branch: master | Nicolas George <nicolas.george at normalesup.org> | Sat May 19 18:12:09 2012 +0200| [3d2515a8f3ba35f10a69d077936770955b5394da] | committer: Michael Niedermayer

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 at normalesup.org>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=3d2515a8f3ba35f10a69d077936770955b5394da
---

 libavfilter/f_split.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavfilter/f_split.c b/libavfilter/f_split.c
index 2015980..212aecd 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);



More information about the ffmpeg-cvslog mailing list