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:
c4d85fc
)
avcodec/libmp3lame: use av_malloc_array()
author
Michael Niedermayer
<michaelni@gmx.at>
Sat, 17 Jan 2015 11:56:19 +0000
(12:56 +0100)
committer
Michael Niedermayer
<michaelni@gmx.at>
Sat, 17 Jan 2015 11:56:19 +0000
(12:56 +0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/libmp3lame.c
patch
|
blob
|
history
diff --git
a/libavcodec/libmp3lame.c
b/libavcodec/libmp3lame.c
index
e33919b
..
6b9561d
100644
(file)
--- a/
libavcodec/libmp3lame.c
+++ b/
libavcodec/libmp3lame.c
@@
-146,7
+146,7
@@
static av_cold int mp3lame_encode_init(AVCodecContext *avctx)
if (avctx->sample_fmt == AV_SAMPLE_FMT_FLTP) {
int ch;
for (ch = 0; ch < avctx->channels; ch++) {
- s->samples_flt[ch] = av_malloc
(avctx->frame_size *
+ s->samples_flt[ch] = av_malloc
_array(avctx->frame_size,
sizeof(*s->samples_flt[ch]));
if (!s->samples_flt[ch]) {
ret = AVERROR(ENOMEM);