af_channelmap: Set the frame channel layout

Otherwise the frame would show the first layout matching the
channel count.
This commit is contained in:
Luca Barbato 2014-08-01 23:32:40 +02:00
parent 87efaa97ce
commit f0e9594819
1 changed files with 2 additions and 0 deletions

View 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);
}