[FFmpeg-cvslog] af_channelsplit: set output channels, fix assertion failure

Michael Niedermayer git at videolan.org
Thu Mar 28 14:34:57 CET 2013


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Thu Mar 28 14:22:05 2013 +0100| [acaee26008c157811414fbcfd9bf5859dc71dfe2] | committer: Michael Niedermayer

af_channelsplit: set output channels, fix assertion failure

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

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

 libavfilter/af_channelsplit.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/libavfilter/af_channelsplit.c b/libavfilter/af_channelsplit.c
index 9bcdc54..ada967e 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)



More information about the ffmpeg-cvslog mailing list