diff --git a/libavformat/matroskadec.c b/libavformat/matroskadec.c index 94249111f2..11426307fe 100644 --- a/libavformat/matroskadec.c +++ b/libavformat/matroskadec.c @@ -172,6 +172,8 @@ typedef struct MatroskaDemuxContext { AVStream *skip_to_stream; } MatroskaDemuxContext; +#define ARRAY_SIZE(x) (sizeof(x)/sizeof(*x)) + /* * The first few functions handle EBML file parsing. The rest * is the document interpretation. Matroska really just is a @@ -2308,8 +2310,6 @@ matroska_parse_chapters(AVFormatContext *s) return res; } -#define ARRAY_SIZE(x) (sizeof(x)/sizeof(*x)) - static int matroska_aac_profile (char *codec_id) {