swresample/rematrix: fix typo in clean_layout()

av_channel_layout_index_from_channel() takes an AVChannel value, not a mask.

Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
James Almer 2022-03-28 00:07:33 -03:00
parent 4a8f932fd9
commit 5ee198f9aa
1 changed files with 1 additions and 1 deletions

View File

@ -114,7 +114,7 @@ static int clean_layout(AVChannelLayout *out, const AVChannelLayout *in, void *s
{ {
int ret = 0; 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]; char buf[128];
av_channel_layout_describe(in, buf, sizeof(buf)); av_channel_layout_describe(in, buf, sizeof(buf));
av_log(s, AV_LOG_VERBOSE, "Treating %s as mono\n", buf); av_log(s, AV_LOG_VERBOSE, "Treating %s as mono\n", buf);