summaryrefslogtreecommitdiff
path: root/libavformat/mxf.h
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-05-07 03:39:51 +0200
committerMichael Niedermayer <michaelni@gmx.at>2015-05-10 14:39:27 +0200
commit3d65570f2560d2b1d9460c0bc9789c412a1138f7 (patch)
treed97eac3c7360d85001753294a7d4c488e5cddc06 /libavformat/mxf.h
parent8b42b222220900be4d2040149dea15074b2b8b02 (diff)
downloadffmpeg-3d65570f2560d2b1d9460c0bc9789c412a1138f7.tar.gz
avformat/mxf: Always evaluate PRINT_KEY() arguments at compile time
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/mxf.h')
-rw-r--r--libavformat/mxf.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/libavformat/mxf.h b/libavformat/mxf.h
index dd08bdc1e3..1763063a69 100644
--- a/libavformat/mxf.h
+++ b/libavformat/mxf.h
@@ -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 */