[FFmpeg-cvslog] af_channelmap: Set the frame channel layout

Luca Barbato git at videolan.org
Sat Aug 2 05:05:39 CEST 2014


ffmpeg | branch: master | Luca Barbato <lu_zero at gentoo.org> | Fri Aug  1 23:32:40 2014 +0200| [f0e959481968b6d906931127237ed981b6414f6e] | committer: Luca Barbato

af_channelmap: Set the frame channel layout

Otherwise the frame would show the first layout matching the
channel count.

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

 libavfilter/af_channelmap.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavfilter/af_channelmap.c b/libavfilter/af_channelmap.c
index 3e5cc3d..3035405 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);
 }
 



More information about the ffmpeg-cvslog mailing list