mirror of https://git.ffmpeg.org/ffmpeg.git
af_channelmap: Set the frame channel layout
Otherwise the frame would show the first layout matching the channel count.
This commit is contained in:
parent
87efaa97ce
commit
f0e9594819
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue