af_channelmap: Set the frame channel layout
authorLuca Barbato <lu_zero@gentoo.org>
Fri, 1 Aug 2014 21:32:40 +0000 (23:32 +0200)
committerLuca Barbato <lu_zero@gentoo.org>
Fri, 1 Aug 2014 22:58:21 +0000 (00:58 +0200)
Otherwise the frame would show the first layout matching the
channel count.

libavfilter/af_channelmap.c

index 3e5cc3d7e47200a435d61390eb36fde29971cb16..3035405f5dda26b69c32a4b34ddb9480c3fa863c 100644 (file)
@@ -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);
 }