[FFmpeg-devel] [PATCH 05/10] aacenctab: Use FF_ARRAY_ELEMS

Timothy Gu timothygu99 at gmail.com
Sat Aug 22 03:21:38 CEST 2015


---
 libavcodec/aacenctab.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavcodec/aacenctab.c b/libavcodec/aacenctab.c
index f831592..f3d70fb 100644
--- a/libavcodec/aacenctab.c
+++ b/libavcodec/aacenctab.c
@@ -104,5 +104,5 @@ const uint8_t *ff_aac_swb_size_1024[] = {
     swb_size_1024_8
 };
 
-const int ff_aac_swb_size_128_len  = sizeof(ff_aac_swb_size_128)/sizeof(*ff_aac_swb_size_128);
-const int ff_aac_swb_size_1024_len = sizeof(ff_aac_swb_size_1024)/sizeof(*ff_aac_swb_size_1024);
+const int ff_aac_swb_size_128_len  = FF_ARRAY_ELEMS(ff_aac_swb_size_128);
+const int ff_aac_swb_size_1024_len = FF_ARRAY_ELEMS(ff_aac_swb_size_1024);
-- 
1.9.1



More information about the ffmpeg-devel mailing list