[FFmpeg-cvslog] r23951 - trunk/libavformat/mpegtsenc.c
Baptiste Coudurier
baptiste.coudurier
Fri Jul 2 01:23:17 CEST 2010
On 07/01/2010 04:21 PM, mru wrote:
> 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);
>
Ouch, thanks for fixing this.
--
Baptiste COUDURIER
Key fingerprint 8D77134D20CC9220201FC5DB0AC9325C5C1ABAAA
FFmpeg maintainer http://www.ffmpeg.org
More information about the ffmpeg-cvslog
mailing list