aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/mpegtsenc.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-04-15 13:42:46 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-04-15 13:51:48 +0200
commit337f74868c5c113730d787b97eed7d6b114eecf1 (patch)
treec357644898e5b238cc7feb525123846809bf71c4 /libavformat/mpegtsenc.c
parent083b6e739bfd6cfe9ceef0316d31110f2d9c22be (diff)
downloadffmpeg-337f74868c5c113730d787b97eed7d6b114eecf1.tar.gz
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.c2
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);