[FFmpeg-cvslog] avformat/mpegtsenc: use av_malloc_array()
Michael Niedermayer
git at videolan.org
Tue Apr 15 13:57:02 CEST 2014
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Tue Apr 15 13:42:46 2014 +0200| [337f74868c5c113730d787b97eed7d6b114eecf1] | committer: Michael Niedermayer
avformat/mpegtsenc: use av_malloc_array()
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=337f74868c5c113730d787b97eed7d6b114eecf1
---
libavformat/mpegtsenc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavformat/mpegtsenc.c b/libavformat/mpegtsenc.c
index d24baa4..8d80e07 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);
More information about the ffmpeg-cvslog
mailing list