summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gst-libs/gst/mpegts/gstmpegtssection.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gst-libs/gst/mpegts/gstmpegtssection.c b/gst-libs/gst/mpegts/gstmpegtssection.c
index 8daf6b25fd..633d72dc77 100644
--- a/gst-libs/gst/mpegts/gstmpegtssection.c
+++ b/gst-libs/gst/mpegts/gstmpegtssection.c
@@ -827,7 +827,7 @@ _packetize_pmt (GstMpegTsSection * section)
if (stream->descriptors) {
for (j = 0; j < stream->descriptors->len; j++) {
- descriptor = g_ptr_array_index (stream->descriptors, i);
+ descriptor = g_ptr_array_index (stream->descriptors, j);
stream_length += descriptor->length + 2;
}
}