summaryrefslogtreecommitdiff
path: root/libavcodec/aacenctab.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavcodec/aacenctab.c')
-rw-r--r--libavcodec/aacenctab.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/aacenctab.c b/libavcodec/aacenctab.c
index 39e8376021..e56be2bd9b 100644
--- a/libavcodec/aacenctab.c
+++ b/libavcodec/aacenctab.c
@@ -104,5 +104,5 @@ const uint8_t *swb_size_1024[] = {
swb_size_1024_8
};
-const int swb_size_128_len = sizeof(swb_size_128)/sizeof(*swb_size_128);
-const int swb_size_1024_len = sizeof(swb_size_1024)/sizeof(*swb_size_1024);
+const int swb_size_128_len = FF_ARRAY_ELEMS(swb_size_128);
+const int swb_size_1024_len = FF_ARRAY_ELEMS(swb_size_1024);