summaryrefslogtreecommitdiff
path: root/libavfilter/avf_showcqt.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-01-22 13:56:30 +0100
committerMichael Niedermayer <michaelni@gmx.at>2015-01-22 13:56:30 +0100
commita30fd828abf4830d15a1bd7935d08477961f6628 (patch)
tree2bb36f8c5fe5d699e0017f4903972fb8848c264d /libavfilter/avf_showcqt.c
parentf77571f6bb5a252e09fc47049b0c61cc11559fad (diff)
avfilter/avf_showcqt: use av_malloc_array()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavfilter/avf_showcqt.c')
-rw-r--r--libavfilter/avf_showcqt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/avf_showcqt.c b/libavfilter/avf_showcqt.c
index b8605ece97..e862dc7c1e 100644
--- a/libavfilter/avf_showcqt.c
+++ b/libavfilter/avf_showcqt.c
@@ -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;