summaryrefslogtreecommitdiff
path: root/libavutil/internal.h
diff options
context:
space:
mode:
Diffstat (limited to 'libavutil/internal.h')
-rw-r--r--libavutil/internal.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/libavutil/internal.h b/libavutil/internal.h
index a46b2b15ce..047f742e5a 100644
--- a/libavutil/internal.h
+++ b/libavutil/internal.h
@@ -250,6 +250,12 @@ void avpriv_request_sample(void *avc,
#define SIZE_SPECIFIER "zu"
#endif
+#ifdef DEBUG
+# define ff_dlog(ctx, ...) av_log(ctx, AV_LOG_DEBUG, __VA_ARGS__)
+#else
+# define ff_dlog(ctx, ...) do { if (0) av_log(ctx, AV_LOG_DEBUG, __VA_ARGS__); } while (0)
+#endif
+
/**
* A wrapper for open() setting O_CLOEXEC.
*/