aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuca Barbato <lu_zero@gentoo.org>2014-08-01 23:32:40 +0200
committerLuca Barbato <lu_zero@gentoo.org>2014-08-02 00:58:21 +0200
commitf0e959481968b6d906931127237ed981b6414f6e (patch)
tree254102a13b2ca8613c9f240a8464817cafd04d4f
parent87efaa97ceb0ad5820870855d6df3e569e6eac7e (diff)
downloadffmpeg-f0e959481968b6d906931127237ed981b6414f6e.tar.gz
af_channelmap: Set the frame channel layout
Otherwise the frame would show the first layout matching the channel count.
-rw-r--r--libavfilter/af_channelmap.c2
1 files changed, 2 insertions, 0 deletions
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);
}