summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZaheer Abbas Merali <zaheerabbas@merali.org>2010-05-17 16:26:03 +0100
committerZaheer Abbas Merali <zaheerabbas@merali.org>2010-05-17 16:26:03 +0100
commit5208d030b3354101c5c0a49a0758c9782f0da116 (patch)
treeda9a1a3c34b9d708bdf335c7f964b01ee87cf86c
parentf994f51a2c6de06489f70f7e28862662c80b7697 (diff)
mpegtsdemux: fix memory corruption when parsing adaptation field
-rw-r--r--gst/mpegdemux/gstmpegtsdemux.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gst/mpegdemux/gstmpegtsdemux.c b/gst/mpegdemux/gstmpegtsdemux.c
index 1aa86efb4..1c747c367 100644
--- a/gst/mpegdemux/gstmpegtsdemux.c
+++ b/gst/mpegdemux/gstmpegtsdemux.c
@@ -1782,7 +1782,7 @@ gst_mpegts_demux_parse_adaptation_field (GstMpegTSStream * stream,
pmt_stream = demux->streams[demux->streams[j]->PMT_pid];
GST_DEBUG_OBJECT (demux, "Updating base_time on all es "
"pids belonging to PMT 0x%02x", stream->PMT_pid);
- for (i = 0; i <= pmt_stream->PMT.entries->len; i++) {
+ for (i = 0; i < pmt_stream->PMT.entries->len; i++) {
GstMpegTSPMTEntry *cur_entry =
&g_array_index (pmt_stream->PMT.entries,
GstMpegTSPMTEntry, i);