summaryrefslogtreecommitdiff
path: root/libavformat/mxf.h
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-03-19 20:54:12 +0100
committerMichael Niedermayer <michaelni@gmx.at>2014-03-19 20:54:35 +0100
commit3e59db606ed42f30edb2133be66d379b04228664 (patch)
treed01f2d02cd7e9a9237aa0df9feb4452f79bc14ea /libavformat/mxf.h
parent8263c1469164392c9b2946bf11d58d9a921829cf (diff)
parent6920fb2b33f84b114ea4561ae1c623f4a26562e5 (diff)
downloadffmpeg-3e59db606ed42f30edb2133be66d379b04228664.tar.gz
Merge commit '6920fb2b33f84b114ea4561ae1c623f4a26562e5'
* commit '6920fb2b33f84b114ea4561ae1c623f4a26562e5': mxf: Verbose debug logging Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/mxf.h')
-rw-r--r--libavformat/mxf.h29
1 files changed, 27 insertions, 2 deletions
diff --git a/libavformat/mxf.h b/libavformat/mxf.h
index 4c751e8eef..cf7ec0bab5 100644
--- a/libavformat/mxf.h
+++ b/libavformat/mxf.h
@@ -79,7 +79,32 @@ extern const MXFCodecUL ff_mxf_pixel_format_uls[];
int ff_mxf_decode_pixel_layout(const char pixel_layout[16], enum AVPixelFormat *pix_fmt);
const MXFSamplesPerFrame *ff_mxf_get_samples_per_frame(AVFormatContext *s, AVRational time_base);
-#define PRINT_KEY(pc, s, x) av_dlog(pc, "%s %02X %02X %02X %02X %02X %02X %02X %02X %02X %02X %02X %02X %02X %02X %02X %02X\n", s, \
- (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])
+#ifdef DEBUG
+#define PRINT_KEY(pc, s, x) \
+ 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, \
+ (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]); \
+ av_log(pc, AV_LOG_INFO, \
+ "%s " \
+ "%02x.%02x.%02x.%02x." \
+ "%02x.%02x.%02x.%02x." \
+ "%02x.%02x.%02x.%02x." \
+ "%02x.%02x.%02x.%02x\n", \
+ s, \
+ (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])
+#else
+#define PRINT_KEY(pc, s, x)
+#endif
#endif /* AVFORMAT_MXF_H */