[FFmpeg-cvslog] drawtext: fix leak with timecodes

Michael Niedermayer git at videolan.org
Thu Oct 11 16:55:40 CEST 2012


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Thu Oct 11 16:45:50 2012 +0200| [7457da3698c641212bb921cfb0aa0e7853fdda48] | committer: Michael Niedermayer

drawtext: fix leak with timecodes

Fixes CID733799
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=7457da3698c641212bb921cfb0aa0e7853fdda48
---

 libavfilter/vf_drawtext.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/libavfilter/vf_drawtext.c b/libavfilter/vf_drawtext.c
index 9b7f8ee..7b67271 100644
--- a/libavfilter/vf_drawtext.c
+++ b/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);
     }
 



More information about the ffmpeg-cvslog mailing list