[FFmpeg-cvslog] r23951 - trunk/libavformat/mpegtsenc.c
mru
subversion
Fri Jul 2 01:21:24 CEST 2010
Author: mru
Date: Fri Jul 2 01:21:23 2010
New Revision: 23951
Log:
mpegtsenc: allocate correct size for PID table
Modified:
trunk/libavformat/mpegtsenc.c
Modified: trunk/libavformat/mpegtsenc.c
==============================================================================
--- trunk/libavformat/mpegtsenc.c Fri Jul 2 01:21:20 2010 (r23950)
+++ trunk/libavformat/mpegtsenc.c Fri Jul 2 01:21:23 2010 (r23951)
@@ -412,7 +412,7 @@ static int mpegts_write_header(AVFormatC
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);
More information about the ffmpeg-cvslog
mailing list