Browse Source

mpegtsenc: allocate correct size for PID table

Originally committed as revision 23951 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/n0.8
Måns Rullgård 15 years ago
parent
commit
ea59f489b0
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavformat/mpegtsenc.c

+ 1
- 1
libavformat/mpegtsenc.c View File

@@ -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);



Loading…
Cancel
Save