diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-04-15 15:42:46 +0400 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-04-15 15:51:48 +0400 |
commit | 337f74868c5c113730d787b97eed7d6b114eecf1 (patch) | |
tree | c357644898e5b238cc7feb525123846809bf71c4 /libavformat/mpegtsenc.c | |
parent | 083b6e739bfd6cfe9ceef0316d31110f2d9c22be (diff) |
avformat/mpegtsenc: use av_malloc_array()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/mpegtsenc.c')
-rw-r--r-- | libavformat/mpegtsenc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/mpegtsenc.c b/libavformat/mpegtsenc.c index d24baa4ebc..8d80e072a0 100644 --- a/libavformat/mpegtsenc.c +++ b/libavformat/mpegtsenc.c @@ -628,7 +628,7 @@ static int mpegts_write_header(AVFormatContext *s) ts->sdt.write_packet = section_write_packet; ts->sdt.opaque = s; - pids = av_malloc(s->nb_streams * sizeof(*pids)); + pids = av_malloc_array(s->nb_streams, sizeof(*pids)); if (!pids) return AVERROR(ENOMEM); |