mirror of
https://github.com/librempeg/librempeg
synced 2024-11-22 09:02:20 +00:00
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:
parent
4a8f932fd9
commit
5ee198f9aa
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user