[FFmpeg-cvslog] vf_drawtext: do not use deprecated av_tree_node_size

Anton Khirnov git at videolan.org
Sat Nov 3 14:35:41 CET 2012


ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Fri Nov  2 10:56:30 2012 +0100| [b68aac7ea34ec92321508f7365b5f2813766be79] | committer: Anton Khirnov

vf_drawtext: do not use deprecated av_tree_node_size

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

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

diff --git a/libavfilter/vf_drawtext.c b/libavfilter/vf_drawtext.c
index ecc789c..43a42d8 100644
--- a/libavfilter/vf_drawtext.c
+++ b/libavfilter/vf_drawtext.c
@@ -263,7 +263,7 @@ static int load_glyph(AVFilterContext *ctx, Glyph **glyph_ptr, uint32_t code)
     FT_Glyph_Get_CBox(*glyph->glyph, ft_glyph_bbox_pixels, &glyph->bbox);
 
     /* cache the newly created glyph */
-    if (!(node = av_mallocz(av_tree_node_size))) {
+    if (!(node = av_tree_node_alloc())) {
         ret = AVERROR(ENOMEM);
         goto error;
     }



More information about the ffmpeg-cvslog mailing list