diff mbox series

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

Message ID 1599972045-11361-1-git-send-email-mypopydev@gmail.com
State New
Headers show
Series [FFmpeg-devel,1/2] lavfi/drawtext: Add reinit to debug message
Related show

Checks

Context Check Description
andriy/default pending
andriy/make success Make finished
andriy/make_fate success Make fate finished

Commit Message

Jun Zhao Sept. 13, 2020, 4:40 a.m. UTC
From: Jun Zhao <barryjzhao@tencent.com>

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

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

Patch

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);
 }