Commit ea59f489 authored by Måns Rullgård's avatar Måns Rullgård

mpegtsenc: allocate correct size for PID table

Originally committed as revision 23951 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 59bebb11
...@@ -412,7 +412,7 @@ static int mpegts_write_header(AVFormatContext *s) ...@@ -412,7 +412,7 @@ static int mpegts_write_header(AVFormatContext *s)
ts->sdt.write_packet = section_write_packet; ts->sdt.write_packet = section_write_packet;
ts->sdt.opaque = s; ts->sdt.opaque = s;
pids = av_malloc(s->nb_streams); pids = av_malloc(s->nb_streams * sizeof(*pids));
if (!pids) if (!pids)
return AVERROR(ENOMEM); return AVERROR(ENOMEM);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment