summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);