diff options
author | Diego Biurrun <diego@biurrun.de> | 2011-09-08 14:21:38 +0200 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2011-09-08 15:57:14 +0200 |
commit | 6376362d15ccbc02e15d0b3b7a7a5d862efd6b91 (patch) | |
tree | 16094be11e5a81d1fea45df5700151673aa63200 /libavformat/avlanguage.c | |
parent | 55354b7de21e7bb4bbeb1c12ff55ea17f807c70c (diff) | |
download | ffmpeg-6376362d15ccbc02e15d0b3b7a7a5d862efd6b91.tar.gz |
Employ FF_ARRAY_ELEMS instead of manually calculating array length.
Diffstat (limited to 'libavformat/avlanguage.c')
-rw-r--r-- | libavformat/avlanguage.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavformat/avlanguage.c b/libavformat/avlanguage.c index 787382ef13..e606ef22f9 100644 --- a/libavformat/avlanguage.c +++ b/libavformat/avlanguage.c @@ -20,6 +20,7 @@ #include "avlanguage.h" #include "libavutil/avstring.h" +#include "libavutil/common.h" #include <stdlib.h> #include <stdint.h> #include <string.h> @@ -736,7 +737,7 @@ const char *av_convert_lang_to(const char *lang, enum AVLangCodespace target_cod { int i; const LangEntry *entry = NULL; - const int NB_CODESPACES = sizeof(lang_table_counts)/sizeof(*lang_table_counts); + const int NB_CODESPACES = FF_ARRAY_ELEMS(lang_table_counts); if (target_codespace >= NB_CODESPACES) return NULL; |