avformat/mxf: Always evaluate PRINT_KEY() arguments at compile time
authorMichael Niedermayer <michaelni@gmx.at>
Thu, 7 May 2015 01:39:51 +0000 (03:39 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Sun, 10 May 2015 12:39:27 +0000 (14:39 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/mxf.h

index dd08bdc..1763063 100644 (file)
@@ -111,7 +111,15 @@ const MXFSamplesPerFrame *ff_mxf_get_samples_per_frame(AVFormatContext *s, AVRat
            "%02x.%02x.%02x.%02x\n",                 \
             s, UID_ARG(x))
 #else
-#define PRINT_KEY(pc, s, x)
+#define PRINT_KEY(pc, s, x) do { if(0)              \
+    av_log(pc, AV_LOG_VERBOSE,                      \
+           "%s "                                    \
+           "0x%02x,0x%02x,0x%02x,0x%02x,"           \
+           "0x%02x,0x%02x,0x%02x,0x%02x,"           \
+           "0x%02x,0x%02x,0x%02x,0x%02x,"           \
+           "0x%02x,0x%02x,0x%02x,0x%02x ",          \
+            s, UID_ARG(x));                         \
+    }while(0)
 #endif
 
 #endif /* AVFORMAT_MXF_H */