diff options
author | Luca Barbato <lu_zero@gentoo.org> | 2014-08-01 23:32:40 +0200 |
---|---|---|
committer | Luca Barbato <lu_zero@gentoo.org> | 2014-08-02 00:58:21 +0200 |
commit | f0e959481968b6d906931127237ed981b6414f6e (patch) | |
tree | 254102a13b2ca8613c9f240a8464817cafd04d4f | |
parent | 87efaa97ceb0ad5820870855d6df3e569e6eac7e (diff) | |
download | ffmpeg-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.c | 2 |
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); } |