[FFmpeg-cvslog] avcodec/audiotoolboxenc: Fix the use of FF_ARRAY_ELEMS

Martin Storsjö git at videolan.org
Tue Mar 15 15:26:34 EET 2022


ffmpeg | branch: master | Martin Storsjö <martin at martin.st> | Tue Mar 15 15:25:04 2022 +0200| [6383862ae2868470576f7e10e7b94733d88a595a] | committer: Martin Storsjö

avcodec/audiotoolboxenc: Fix the use of FF_ARRAY_ELEMS

Signed-off-by: Martin Storsjö <martin at martin.st>

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

 libavcodec/audiotoolboxenc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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;
 



More information about the ffmpeg-cvslog mailing list