Browse Source

drawtext: fix leak with timecodes

Fixes CID733799
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n1.1
Michael Niedermayer 13 years ago
parent
commit
7457da3698
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      libavfilter/vf_drawtext.c

+ 1
- 0
libavfilter/vf_drawtext.c View File

@@ -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