summaryrefslogtreecommitdiff
path: root/libavutil
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-08-02 00:27:41 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-08-05 20:02:35 +0200
commit549502868d7192cefbc59708b1bdb9bd6b5d60c6 (patch)
tree9a7ac61dd36333c631180c37d7f7c315aae298a1 /libavutil
parent2b6e008577fa444fc8d1b3a7b985c600633f4ee4 (diff)
Move ff_tlog() from lavc/internal.h to lavu/internal.h
It is also used by libavfilter and it is only natural to define it alongside ff_dlog(). Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavutil')
-rw-r--r--libavutil/internal.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/libavutil/internal.h b/libavutil/internal.h
index a33e8700c3..d8a1f2672e 100644
--- a/libavutil/internal.h
+++ b/libavutil/internal.h
@@ -198,6 +198,12 @@ void avpriv_request_sample(void *avc,
# define ff_dlog(ctx, ...) do { if (0) av_log(ctx, AV_LOG_DEBUG, __VA_ARGS__); } while (0)
#endif
+#ifdef TRACE
+# define ff_tlog(ctx, ...) av_log(ctx, AV_LOG_TRACE, __VA_ARGS__)
+#else
+# define ff_tlog(ctx, ...) do { } while(0)
+#endif
+
// For debuging we use signed operations so overflows can be detected (by ubsan)
// For production we use unsigned so there are no undefined operations
#ifdef CHECKED