aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/internal.h
diff options
context:
space:
mode:
authorVittorio Giovara <vittorio.giovara@gmail.com>2015-03-16 08:57:36 +0000
committerVittorio Giovara <vittorio.giovara@gmail.com>2015-04-19 12:41:59 +0100
commit6a85dfc830f51f1f5c2d36d4182d265c1ea3ba25 (patch)
treee7c2aefd4766229b73aef86bf3312563f70a658c /libavcodec/internal.h
parent1a3eb042c704dea190c644def5b32c9cee8832b8 (diff)
downloadffmpeg-6a85dfc830f51f1f5c2d36d4182d265c1ea3ba25.tar.gz
lavc: Replace av_dlog and tprintf with internal macros
Diffstat (limited to 'libavcodec/internal.h')
-rw-r--r--libavcodec/internal.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/libavcodec/internal.h b/libavcodec/internal.h
index 5aa77129a2..6f15a782bb 100644
--- a/libavcodec/internal.h
+++ b/libavcodec/internal.h
@@ -48,6 +48,19 @@
#define FF_CODEC_CAP_INIT_CLEANUP (1 << 1)
+#ifdef DEBUG
+# define ff_dlog(ctx, ...) av_log(ctx, AV_LOG_DEBUG, __VA_ARGS__)
+#else
+# define ff_dlog(ctx, ...)
+#endif
+
+#ifdef TRACE
+# define ff_tlog(ctx, ...) av_log(ctx, AV_LOG_TRACE, __VA_ARGS__)
+#else
+# define ff_tlog(p, ...)
+#endif
+
+
#define FF_SANE_NB_CHANNELS 63U
#define FF_SIGNBIT(x) (x >> CHAR_BIT * sizeof(x) - 1)