changeset 4954:2a4f618b2da3 libavformat

move DEBUG define before include to get dprintf and move guidcmp before print_guid, fix compilation with DEBUG
author bcoudurier
date Sun, 24 May 2009 09:59:53 +0000
parents 1b3487b81ac7
children 6671e7510fca
files asfdec.c
diffstat 1 files changed, 6 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/asfdec.c	Sat May 23 07:17:17 2009 +0000
+++ b/asfdec.c	Sun May 24 09:59:53 2009 +0000
@@ -19,6 +19,8 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  */
 
+//#define DEBUG
+
 #include "libavutil/common.h"
 #include "libavutil/avstring.h"
 #include "libavcodec/mpegaudio.h"
@@ -46,7 +48,10 @@
 /**********************************/
 /* decoding */
 
-//#define DEBUG
+static int guidcmp(const void *g1, const void *g2)
+{
+    return memcmp(g1, g2, sizeof(ff_asf_guid));
+}
 
 #ifdef DEBUG
 #define PRINT_IF_GUID(g,cmp) \
@@ -90,11 +95,6 @@
 #define print_guid(g)
 #endif
 
-static int guidcmp(const void *g1, const void *g2)
-{
-    return memcmp(g1, g2, sizeof(ff_asf_guid));
-}
-
 static void get_guid(ByteIOContext *s, ff_asf_guid *g)
 {
     assert(sizeof(*g) == 16);