From f0e959481968b6d906931127237ed981b6414f6e Mon Sep 17 00:00:00 2001 From: Luca Barbato Date: Fri, 1 Aug 2014 23:32:40 +0200 Subject: [PATCH] af_channelmap: Set the frame channel layout Otherwise the frame would show the first layout matching the channel count. --- libavfilter/af_channelmap.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libavfilter/af_channelmap.c b/libavfilter/af_channelmap.c index 3e5cc3d7e4..3035405f5d 100644 --- a/libavfilter/af_channelmap.c +++ b/libavfilter/af_channelmap.c @@ -342,6 +342,8 @@ static int channelmap_filter_frame(AVFilterLink *inlink, AVFrame *buf) memcpy(buf->data, buf->extended_data, FFMIN(FF_ARRAY_ELEMS(buf->data), nch_out) * sizeof(buf->data[0])); + buf->channel_layout = outlink->channel_layout; + return ff_filter_frame(outlink, buf); }