]> git.sesse.net Git - ffmpeg/blobdiff - libavutil/internal.h
avfilter/vf_waveform: stop abusing s->size for calculating limit
[ffmpeg] / libavutil / internal.h
index a46b2b15cecd3bc81c3597d900d7b564f4893a3f..047f742e5a9845117af3555fda5637a5562eb80a 100644 (file)
@@ -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.
  */