drawtext: fix leak with timecodes

Fixes CID733799
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
pull/6/head
Michael Niedermayer 13 years ago
parent bb35864759
commit 7457da3698
  1. 1
      libavfilter/vf_drawtext.c

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

Loading…
Cancel
Save