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:
7532f0e
)
avcodec/libopusenc: Use av_mallocz_array()
author
Michael Niedermayer
<michaelni@gmx.at>
Sat, 17 Jan 2015 11:58:56 +0000
(12:58 +0100)
committer
Michael Niedermayer
<michaelni@gmx.at>
Sat, 17 Jan 2015 11:58:56 +0000
(12:58 +0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/libopusenc.c
patch
|
blob
|
history
diff --git
a/libavcodec/libopusenc.c
b/libavcodec/libopusenc.c
index
6bb4862
..
7854609
100644
(file)
--- a/
libavcodec/libopusenc.c
+++ b/
libavcodec/libopusenc.c
@@
-277,7
+277,7
@@
static av_cold int libopus_encode_init(AVCodecContext *avctx)
}
avctx->extradata_size = header_size;
- opus->samples = av_mallocz
(frame_size *
avctx->channels *
+ opus->samples = av_mallocz
_array(frame_size,
avctx->channels *
av_get_bytes_per_sample(avctx->sample_fmt));
if (!opus->samples) {
av_log(avctx, AV_LOG_ERROR, "Failed to allocate samples buffer.\n");