summaryrefslogtreecommitdiff
path: root/libswresample
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2022-03-28 00:07:33 -0300
committerJames Almer <jamrial@gmail.com>2022-03-28 00:07:42 -0300
commit5ee198f9aae40681de2735260465d47c64b53feb (patch)
tree5ef8f810f532cda9b05c8c3c39675f42081bbfe9 /libswresample
parent4a8f932fd913d24aa46c9b5784b6e4980567c3ea (diff)
downloadffmpeg-5ee198f9aae40681de2735260465d47c64b53feb.tar.gz
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>
Diffstat (limited to 'libswresample')
-rw-r--r--libswresample/rematrix.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libswresample/rematrix.c b/libswresample/rematrix.c
index 37e8c2ef4b..5e89b878dd 100644
--- a/libswresample/rematrix.c
+++ b/libswresample/rematrix.c
@@ -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);