aacenctab: Use FF_ARRAY_ELEMS
authorTimothy Gu <timothygu99@gmail.com>
Sat, 22 Aug 2015 03:07:09 +0000 (04:07 +0100)
committerRostislav Pehlivanov <atomnuker@gmail.com>
Sat, 22 Aug 2015 03:07:09 +0000 (04:07 +0100)
Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
Reviewed-by: Ganesh Ajjanagadde <gajjanag@mit.edu>
libavcodec/aacenctab.c

index 39e8376..e56be2b 100644 (file)
@@ -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);