Commit 7457da36 authored by Michael Niedermayer's avatar Michael Niedermayer

drawtext: fix leak with timecodes

Fixes CID733799
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent bb358647
......@@ -665,6 +665,7 @@ static int draw_text(AVFilterContext *ctx, AVFilterBufferRef *picref,
if (dtext->tc_opt_string) {
char tcbuf[AV_TIMECODE_STR_SIZE];
av_timecode_make_string(&dtext->tc, tcbuf, dtext->frame_id++);
av_free(buf);
buf = av_asprintf("%s%s", dtext->text, tcbuf);
}
......
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