[FFmpeg-devel] [PATCH 16/23] fftools/ffmpeg: replace ff_dlog() with av_log()
Anton Khirnov
anton at khirnov.net
Sat Mar 25 21:15:22 EET 2023
ff_dlog() is a lavu internal macro, and av_log() at trace level is just
as good here.
---
fftools/ffmpeg.c | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/fftools/ffmpeg.c b/fftools/ffmpeg.c
index 1969ce9295..0324e45afa 100644
--- a/fftools/ffmpeg.c
+++ b/fftools/ffmpeg.c
@@ -49,7 +49,6 @@
#include "libavutil/samplefmt.h"
#include "libavutil/fifo.h"
#include "libavutil/hwcontext.h"
-#include "libavutil/internal.h"
#include "libavutil/intreadwrite.h"
#include "libavutil/dict.h"
#include "libavutil/display.h"
@@ -1202,13 +1201,14 @@ static enum AVPictureType forced_kf_apply(void *logctx, KeyframeForceCtx *kf,
kf->expr_const_values[FKF_T] = pts_time;
res = av_expr_eval(kf->pexpr,
kf->expr_const_values, NULL);
- ff_dlog(NULL, "force_key_frame: n:%f n_forced:%f prev_forced_n:%f t:%f prev_forced_t:%f -> res:%f\n",
- kf->expr_const_values[FKF_N],
- kf->expr_const_values[FKF_N_FORCED],
- kf->expr_const_values[FKF_PREV_FORCED_N],
- kf->expr_const_values[FKF_T],
- kf->expr_const_values[FKF_PREV_FORCED_T],
- res);
+ av_log(logctx, AV_LOG_TRACE,
+ "force_key_frame: n:%f n_forced:%f prev_forced_n:%f t:%f prev_forced_t:%f -> res:%f\n",
+ kf->expr_const_values[FKF_N],
+ kf->expr_const_values[FKF_N_FORCED],
+ kf->expr_const_values[FKF_PREV_FORCED_N],
+ kf->expr_const_values[FKF_T],
+ kf->expr_const_values[FKF_PREV_FORCED_T],
+ res);
kf->expr_const_values[FKF_N] += 1;
--
2.39.1
More information about the ffmpeg-devel
mailing list