Mercurial > libavutil.hg
diff crc.c @ 581:95c9067ebb73 libavutil
uses FF_ARRAY_ELEMS() where appropriate
| author | aurel |
|---|---|
| date | Tue, 21 Oct 2008 21:40:24 +0000 |
| parents | 12f0072323ce |
| children | 49da89abe282 |
line wrap: on
line diff
--- a/crc.c Tue Oct 21 14:57:55 2008 +0000 +++ b/crc.c Tue Oct 21 21:40:24 2008 +0000 @@ -91,7 +91,7 @@ */ const AVCRC *av_crc_get_table(AVCRCId crc_id){ #ifndef CONFIG_HARDCODED_TABLES - if (!av_crc_table[crc_id][sizeof(av_crc_table[crc_id])/sizeof(av_crc_table[crc_id][0])-1]) + if (!av_crc_table[crc_id][FF_ARRAY_ELEMS(av_crc_table[crc_id])-1]) if (av_crc_init(av_crc_table[crc_id], av_crc_table_params[crc_id].le, av_crc_table_params[crc_id].bits,
