From 37d3e0667abd01124d783f3ca10a4aef05746a2a Mon Sep 17 00:00:00 2001 From: Aurelien Jacobs Date: Tue, 21 Oct 2008 21:40:24 +0000 Subject: uses FF_ARRAY_ELEMS() where appropriate Originally committed as revision 15662 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/mpegaudiodec.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libavcodec/mpegaudiodec.c') diff --git a/libavcodec/mpegaudiodec.c b/libavcodec/mpegaudiodec.c index 86d9f6b5f4..a277492727 100644 --- a/libavcodec/mpegaudiodec.c +++ b/libavcodec/mpegaudiodec.c @@ -394,7 +394,7 @@ static int decode_init(AVCodecContext * avctx) INIT_VLC_USE_NEW_STATIC); offset += huff_vlc_tables_sizes[i]; } - assert(offset == sizeof(huff_vlc_tables)/(sizeof(VLC_TYPE)*2)); + assert(offset == FF_ARRAY_ELEMS(huff_vlc_tables)); offset = 0; for(i=0;i<2;i++) { @@ -405,7 +405,7 @@ static int decode_init(AVCodecContext * avctx) INIT_VLC_USE_NEW_STATIC); offset += huff_quad_vlc_tables_sizes[i]; } - assert(offset == sizeof(huff_quad_vlc_tables)/(sizeof(VLC_TYPE)*2)); + assert(offset == FF_ARRAY_ELEMS(huff_quad_vlc_tables)); for(i=0;i<9;i++) { k = 0; -- cgit v1.2.3