diff options
author | Paul B Mahol <onemda@gmail.com> | 2013-09-14 14:23:00 +0000 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2013-09-14 16:14:43 +0000 |
commit | 6a70feadb013000c81b75d2fa7732926c3949130 (patch) | |
tree | cc4b9a522021ed6e30f2ab91a3c0fc9da4a2ca8e /libavformat/nutenc.c | |
parent | 1a3d142f1f1e65f554cba84d8a515684ecb390d0 (diff) | |
download | ffmpeg-6a70feadb013000c81b75d2fa7732926c3949130.tar.gz |
avformat/nutenc: use av_calloc()
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavformat/nutenc.c')
-rw-r--r-- | libavformat/nutenc.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libavformat/nutenc.c b/libavformat/nutenc.c index 9b7f41af8d..365b4637e3 100644 --- a/libavformat/nutenc.c +++ b/libavformat/nutenc.c @@ -680,10 +680,10 @@ static int nut_write_header(AVFormatContext *s) nut->avf = s; - nut->stream = av_mallocz(sizeof(StreamContext ) * s->nb_streams); - nut->chapter = av_mallocz(sizeof(ChapterContext) * s->nb_chapters); - nut->time_base= av_mallocz(sizeof(AVRational ) *(s->nb_streams + - s->nb_chapters)); + nut->stream = av_calloc(s->nb_streams, sizeof(*nut->stream )); + nut->chapter = av_calloc(s->nb_chapters, sizeof(*nut->chapter)); + nut->time_base= av_calloc(s->nb_streams + + s->nb_chapters, sizeof(*nut->time_base)); if (!nut->stream || !nut->chapter || !nut->time_base) { av_freep(&nut->stream); av_freep(&nut->chapter); |