Commit 2b43dfce authored by Andrey Utkin's avatar Andrey Utkin Committed by Anton Khirnov

drawtext: fix text_{w, h} expression vars

Before, {text_,}{w,h} vars hadn't got initialized
Signed-off-by: 's avatarAnton Khirnov <anton@khirnov.net>
parent e7f0bc8c
......@@ -550,7 +550,9 @@ static int dtext_prepare_text(AVFilterContext *ctx)
y = FFMIN(y + text_height, height - 1);
dtext->w = str_w;
dtext->var_values[VAR_TEXT_W] = dtext->var_values[VAR_TW] = dtext->w;
dtext->h = y;
dtext->var_values[VAR_TEXT_H] = dtext->var_values[VAR_TH] = dtext->h;
return 0;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment