]> git.sesse.net Git - ffmpeg/blobdiff - libavfilter/avf_showcqt.c
ffmpeg: free_input_threads requires HAVE_PTHREADS
[ffmpeg] / libavfilter / avf_showcqt.c
index b8605ece97bf128b245b794bb26e62a588fb891b..e862dc7c1e87bfa85a932d1ae12123a9edca286b 100644 (file)
@@ -205,7 +205,7 @@ static void load_freetype_font(AVFilterContext *ctx)
     if (FT_Set_Char_Size(face, 16*64 * linear_hori_advance / face->glyph->linearHoriAdvance, 0, 0, 0))
         goto fail;
 
-    s->font_alpha = av_malloc(font_height * video_width);
+    s->font_alpha = av_malloc_array(font_height, video_width);
     if (!s->font_alpha)
         goto fail;