aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-03-28 14:22:05 +0100
committerMichael Niedermayer <michaelni@gmx.at>2013-03-28 14:29:11 +0100
commitacaee26008c157811414fbcfd9bf5859dc71dfe2 (patch)
tree3f15002aebc74bb428a6c3eb640555e2ff871e21
parent7a14564b2d4d95edc74fcbeae8e49664ad2a5d99 (diff)
downloadffmpeg-acaee26008c157811414fbcfd9bf5859dc71dfe2.tar.gz
af_channelsplit: set output channels, fix assertion failure
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavfilter/af_channelsplit.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavfilter/af_channelsplit.c b/libavfilter/af_channelsplit.c
index 9bcdc54c34..ada967e2d4 100644
--- a/libavfilter/af_channelsplit.c
+++ b/libavfilter/af_channelsplit.c
@@ -121,6 +121,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *buf)
buf_out->data[0] = buf_out->extended_data[0] = buf_out->extended_data[i];
buf_out->channel_layout =
av_channel_layout_extract_channel(buf->channel_layout, i);
+ av_frame_set_channels(buf_out, 1);
ret = ff_filter_frame(ctx->outputs[i], buf_out);
if (ret < 0)