[FFmpeg-devel] [PATCH 1/2] lavfi/drawtext: Add reinit to debug message

Jun Zhao mypopydev at gmail.com
Sun Sep 13 07:40:44 EEST 2020


From: Jun Zhao <barryjzhao at tencent.com>

Add reinit flag to debug message, it's help to debug sending commands
to drawtext.

Signed-off-by: Jun Zhao <barryjzhao at tencent.com>
---
 libavfilter/vf_drawtext.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavfilter/vf_drawtext.c b/libavfilter/vf_drawtext.c
index abe1ca6..19e73b7 100644
--- a/libavfilter/vf_drawtext.c
+++ b/libavfilter/vf_drawtext.c
@@ -1536,10 +1536,10 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *frame)
 
     draw_text(ctx, frame, frame->width, frame->height);
 
-    av_log(ctx, AV_LOG_DEBUG, "n:%d t:%f text_w:%d text_h:%d x:%d y:%d\n",
+    av_log(ctx, AV_LOG_DEBUG, "n:%d t:%f text_w:%d text_h:%d x:%d y:%d reinit:%d\n",
            (int)s->var_values[VAR_N], s->var_values[VAR_T],
            (int)s->var_values[VAR_TEXT_W], (int)s->var_values[VAR_TEXT_H],
-           s->x, s->y);
+           s->x, s->y, s->reinit);
 
     return ff_filter_frame(outlink, frame);
 }
-- 
2.7.4



More information about the ffmpeg-devel mailing list