mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-01-11 18:09:36 +00:00
avfilter/avf_showcqt: use av_malloc_array()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
f77571f6bb
commit
a30fd828ab
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user