aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/internal.h
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2011-05-27 20:34:01 +0200
committerDiego Biurrun <diego@biurrun.de>2011-06-03 15:43:34 +0200
commit43b6c3eb182617ff08e72584e1c4635ac20d33e8 (patch)
tree3816565f4b42524c667d1a27875847675e616347 /libavformat/internal.h
parenta5514a84748e90adbbfa2661ccea1e004e6ef604 (diff)
downloadffmpeg-43b6c3eb182617ff08e72584e1c4635ac20d33e8.tar.gz
mpegts: Wrap #ifdef DEBUG and av_hex_dump_log() combination in a macro.
Diffstat (limited to 'libavformat/internal.h')
-rw-r--r--libavformat/internal.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/libavformat/internal.h b/libavformat/internal.h
index 6f1305ce25..ad3d9c91c2 100644
--- a/libavformat/internal.h
+++ b/libavformat/internal.h
@@ -26,6 +26,12 @@
#define MAX_URL_SIZE 4096
+#ifdef DEBUG
+# define hex_dump_debug(class, buf, size) av_hex_dump_log(class, AV_LOG_DEBUG, buf, size)
+#else
+# define hex_dump_debug(class, buf, size)
+#endif
+
typedef struct AVCodecTag {
enum CodecID id;
unsigned int tag;