OSDN Git Service
(root)
/
android-x86
/
external-ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f77571f
)
avfilter/avf_showcqt: use av_malloc_array()
author
Michael Niedermayer
<michaelni@gmx.at>
Thu, 22 Jan 2015 12:56:30 +0000
(13:56 +0100)
committer
Michael Niedermayer
<michaelni@gmx.at>
Thu, 22 Jan 2015 12:56:30 +0000
(13:56 +0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavfilter/avf_showcqt.c
patch
|
blob
|
history
diff --git
a/libavfilter/avf_showcqt.c
b/libavfilter/avf_showcqt.c
index
b8605ec
..
e862dc7
100644
(file)
--- 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;