Commit 5ee198f9 authored by James Almer's avatar James Almer

swresample/rematrix: fix typo in clean_layout()

av_channel_layout_index_from_channel() takes an AVChannel value, not a mask.
Signed-off-by: 's avatarJames Almer <jamrial@gmail.com>
parent 4a8f932f
......@@ -114,7 +114,7 @@ static int clean_layout(AVChannelLayout *out, const AVChannelLayout *in, void *s
{
int ret = 0;
if(av_channel_layout_index_from_channel(in, AV_CH_FRONT_CENTER) < 0 && in->nb_channels == 1) {
if (av_channel_layout_index_from_channel(in, AV_CHAN_FRONT_CENTER) < 0 && in->nb_channels == 1) {
char buf[128];
av_channel_layout_describe(in, buf, sizeof(buf));
av_log(s, AV_LOG_VERBOSE, "Treating %s as mono\n", buf);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment