mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-11-24 03:59:43 +00:00
drawtext: add missing braces around an if() block.
Prevents uninitialized read. Signed-off-by: Anton Khirnov <anton@khirnov.net>
This commit is contained in:
parent
86b57e4efe
commit
e7f0bc8c0f
@ -492,9 +492,11 @@ static int dtext_prepare_text(AVFilterContext *ctx)
|
|||||||
/* get glyph */
|
/* get glyph */
|
||||||
dummy.code = code;
|
dummy.code = code;
|
||||||
glyph = av_tree_find(dtext->glyphs, &dummy, glyph_cmp, NULL);
|
glyph = av_tree_find(dtext->glyphs, &dummy, glyph_cmp, NULL);
|
||||||
if (!glyph)
|
if (!glyph) {
|
||||||
ret = load_glyph(ctx, &glyph, code);
|
ret = load_glyph(ctx, &glyph, code);
|
||||||
if (ret) return ret;
|
if (ret)
|
||||||
|
return ret;
|
||||||
|
}
|
||||||
|
|
||||||
y_min = FFMIN(glyph->bbox.yMin, y_min);
|
y_min = FFMIN(glyph->bbox.yMin, y_min);
|
||||||
y_max = FFMAX(glyph->bbox.yMax, y_max);
|
y_max = FFMAX(glyph->bbox.yMax, y_max);
|
||||||
|
Loading…
Reference in New Issue
Block a user