diff options
author | Måns Rullgård <mans@mansr.com> | 2010-07-01 23:21:23 +0000 |
---|---|---|
committer | Måns Rullgård <mans@mansr.com> | 2010-07-01 23:21:23 +0000 |
commit | ea59f489b0c13df34b3b27063d539daa8655755e (patch) | |
tree | 17051d937c16d11f52f04453d4409cd6d3a85043 /libavformat/mpegtsenc.c | |
parent | 59bebb11e01981346c5e2f5b3e557a45ff89823f (diff) | |
download | ffmpeg-ea59f489b0c13df34b3b27063d539daa8655755e.tar.gz |
mpegtsenc: allocate correct size for PID table
Originally committed as revision 23951 to svn://svn.ffmpeg.org/ffmpeg/trunk
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 52ecd1d092..08ede68ace 100644 --- a/libavformat/mpegtsenc.c +++ b/libavformat/mpegtsenc.c @@ -412,7 +412,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); + pids = av_malloc(s->nb_streams * sizeof(*pids)); if (!pids) return AVERROR(ENOMEM); |