X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavfilter%2Fvf_drawtext.c;h=214aef0f2f5670311c8e303c6a5143a93b7f5616;hb=9bbed8645a6b7137d520041d759f3cc0df0529b9;hp=6b9af5b4255887e78a1c3b35eadf17725f9c6e5f;hpb=884dd175f061c03d7ba4896685e81bf8adc3ea94;p=ffmpeg diff --git a/libavfilter/vf_drawtext.c b/libavfilter/vf_drawtext.c index 6b9af5b4255..214aef0f2f5 100644 --- a/libavfilter/vf_drawtext.c +++ b/libavfilter/vf_drawtext.c @@ -1224,7 +1224,9 @@ static int draw_text(AVFilterContext *ctx, AVFrame *frame, dummy.code = code; glyph = av_tree_find(s->glyphs, &dummy, glyph_cmp, NULL); if (!glyph) { - load_glyph(ctx, &glyph, code); + ret = load_glyph(ctx, &glyph, code); + if (ret < 0) + return ret; } y_min = FFMIN(glyph->bbox.yMin, y_min);