[Ffmpeg-cvslog] r5850 - trunk/libavformat/mxf.c

bcoudurier subversion
Sat Jul 29 15:23:56 CEST 2006


Author: bcoudurier
Date: Sat Jul 29 15:23:56 2006
New Revision: 5850

Modified:
   trunk/libavformat/mxf.c

Log:
simplify PRINT_KEY

Modified: trunk/libavformat/mxf.c
==============================================================================
--- trunk/libavformat/mxf.c	(original)
+++ trunk/libavformat/mxf.c	Sat Jul 29 15:23:56 2006
@@ -163,14 +163,8 @@
 
 #define IS_KLV_KEY(x, y) (!memcmp(x, y, sizeof(y)))
 
-#define PRINT_KEY(x) \
-do { \
-    int iterpk; \
-    for (iterpk = 0; iterpk < 16; iterpk++) { \
-        av_log(NULL, AV_LOG_DEBUG, "%02X ", x[iterpk]); \
-    } \
-    av_log(NULL, AV_LOG_DEBUG, "\n"); \
-} while (0); \
+#define PRINT_KEY(x) dprintf("%02X %02X %02X %02X %02X %02X %02X %02X %02X %02X %02X %02X %02X %02X %02X %02X\n", \
+                             x[0], x[1], x[2], x[3], x[4], x[5], x[6], x[7], x[8], x[9], x[10], x[11], x[12], x[13], x[14], x[15])
 
 static int64_t klv_decode_ber_length(ByteIOContext *pb)
 {




More information about the ffmpeg-cvslog mailing list