git.videolan.org
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b67bcd7
)
avformat/smoothstreamingenc: Use av_mallocz_array()
author
Michael Niedermayer
<michaelni@gmx.at>
Sun, 15 Jun 2014 21:20:56 +0000
(23:20 +0200)
committer
Michael Niedermayer
<michaelni@gmx.at>
Sun, 15 Jun 2014 21:21:46 +0000
(23:21 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/smoothstreamingenc.c
patch
|
blob
|
history
diff --git
a/libavformat/smoothstreamingenc.c
b/libavformat/smoothstreamingenc.c
index
6ce1937
..
d47e44f
100644
(file)
--- a/
libavformat/smoothstreamingenc.c
+++ b/
libavformat/smoothstreamingenc.c
@@
-303,7
+303,7
@@
static int ism_write_header(AVFormatContext *s)
goto fail;
}
- c->streams = av_mallocz
(sizeof(*c->streams) * s->nb_streams
);
+ c->streams = av_mallocz
_array(s->nb_streams, sizeof(*c->streams)
);
if (!c->streams) {
ret = AVERROR(ENOMEM);
goto fail;