mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-24 13:56:33 +02:00
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…
x
Reference in New Issue
Block a user