From 6383862ae2868470576f7e10e7b94733d88a595a Mon Sep 17 00:00:00 2001 From: Martin Storsjö Date: Tue, 15 Mar 2022 15:25:04 +0200 Subject: avcodec/audiotoolboxenc: Fix the use of FF_ARRAY_ELEMS MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Martin Storsjö --- libavcodec/audiotoolboxenc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavcodec/audiotoolboxenc.c') diff --git a/libavcodec/audiotoolboxenc.c b/libavcodec/audiotoolboxenc.c index 74f7ff543f..4f43d8e43b 100644 --- a/libavcodec/audiotoolboxenc.c +++ b/libavcodec/audiotoolboxenc.c @@ -220,7 +220,7 @@ static int get_aac_tag(const AVChannelLayout *in_layout) }; int i; - for (i = 0; i < FF_ARRAY_ELEMS; i++) + for (i = 0; i < FF_ARRAY_ELEMS(map); i++) if (!av_channel_layout_compare(in_layout, &map[i].chl)) return map[i].tag; -- cgit v1.2.3