projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
87efaa9
)
af_channelmap: Set the frame channel layout
author
Luca Barbato
<lu_zero@gentoo.org>
Fri, 1 Aug 2014 21:32:40 +0000
(23:32 +0200)
committer
Luca 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
patch
|
blob
|
history
diff --git
a/libavfilter/af_channelmap.c
b/libavfilter/af_channelmap.c
index 3e5cc3d7e47200a435d61390eb36fde29971cb16..3035405f5dda26b69c32a4b34ddb9480c3fa863c 100644
(file)
--- 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);
}