[FFmpeg-cvslog] vf_drawtext: fix segfault on reinit

Michael Niedermayer git at videolan.org
Tue Aug 30 20:35:51 CEST 2011


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Tue Aug 30 19:47:23 2011 +0200| [3016c7f543a91490457b8a3d21ccef6fd5ff7226] | committer: Michael Niedermayer

vf_drawtext: fix segfault on reinit

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

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

 libavfilter/vf_drawtext.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/libavfilter/vf_drawtext.c b/libavfilter/vf_drawtext.c
index 8615aef..4e65e61 100644
--- a/libavfilter/vf_drawtext.c
+++ b/libavfilter/vf_drawtext.c
@@ -355,6 +355,7 @@ static av_cold void uninit(AVFilterContext *ctx)
     av_freep(&dtext->fontcolor_string);
     av_freep(&dtext->boxcolor_string);
     av_freep(&dtext->positions);
+    dtext->nb_positions = 0;
     av_freep(&dtext->shadowcolor_string);
     av_tree_enumerate(dtext->glyphs, NULL, NULL, glyph_enu_free);
     av_tree_destroy(dtext->glyphs);



More information about the ffmpeg-cvslog mailing list