[FFmpeg-devel] Patch solving resource leak in drawtext border

Leandro Santiago leandrosansilva at gmail.com
Wed Jul 2 15:10:30 CEST 2014


There's a resource leak in drawtext filter where the border glyph is not
freed after being used.

I'm sending as an attachment both test program which reproduces the leak
(vf_drawtext.c:311, acording to Valgrind) and a patch which fixes it.

The test program is essentially the filtering_test.c included in ffmpeg
source tree, but requires a font-file Arial.ttf in the current directory.

-- 
Sent from my mind
-------------- next part --------------
A non-text attachment was scrubbed...
Name: filtering_video.c
Type: text/x-csrc
Size: 8694 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20140702/8060dbde/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: border_no_leak.patch
Type: text/x-diff
Size: 2093 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20140702/8060dbde/attachment-0001.bin>


More information about the ffmpeg-devel mailing list