[FFmpeg-cvslog] swresample/rematrix: fix typo in clean_layout()

James Almer git at videolan.org
Mon Mar 28 06:08:44 EEST 2022


ffmpeg | branch: master | James Almer <jamrial at gmail.com> | Mon Mar 28 00:07:33 2022 -0300| [5ee198f9aae40681de2735260465d47c64b53feb] | committer: 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: James Almer <jamrial at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=5ee198f9aae40681de2735260465d47c64b53feb
---

 libswresample/rematrix.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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



More information about the ffmpeg-cvslog mailing list