mirror of https://git.ffmpeg.org/ffmpeg.git
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>
This commit is contained in:
parent
2b6e008577
commit
549502868d
|
@ -91,13 +91,6 @@
|
||||||
#define FF_CODEC_TAGS_END -1
|
#define FF_CODEC_TAGS_END -1
|
||||||
|
|
||||||
|
|
||||||
#ifdef TRACE
|
|
||||||
# define ff_tlog(ctx, ...) av_log(ctx, AV_LOG_TRACE, __VA_ARGS__)
|
|
||||||
#else
|
|
||||||
# define ff_tlog(ctx, ...) do { } while(0)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
#define FF_DEFAULT_QUANT_BIAS 999999
|
#define FF_DEFAULT_QUANT_BIAS 999999
|
||||||
|
|
||||||
#define FF_QSCALE_TYPE_MPEG1 0
|
#define FF_QSCALE_TYPE_MPEG1 0
|
||||||
|
|
|
@ -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)
|
# define ff_dlog(ctx, ...) do { if (0) av_log(ctx, AV_LOG_DEBUG, __VA_ARGS__); } while (0)
|
||||||
#endif
|
#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 debuging we use signed operations so overflows can be detected (by ubsan)
|
||||||
// For production we use unsigned so there are no undefined operations
|
// For production we use unsigned so there are no undefined operations
|
||||||
#ifdef CHECKED
|
#ifdef CHECKED
|
||||||
|
|
Loading…
Reference in New Issue