changeset 3413:b7f86452706e libavformat

matroskadec: move ARRAY_SIZE() macro at top of the file
author aurel
date Mon, 02 Jun 2008 23:01:14 +0000
parents 17074236eb14
children 703f452f00f1
files matroskadec.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/matroskadec.c	Mon Jun 02 09:15:04 2008 +0000
+++ b/matroskadec.c	Mon Jun 02 23:01:14 2008 +0000
@@ -172,6 +172,8 @@
     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 @@
     return res;
 }
 
-#define ARRAY_SIZE(x)  (sizeof(x)/sizeof(*x))
-
 static int
 matroska_aac_profile (char *codec_id)
 {