mpegts: pmt: Detect descriptor length correct

This commit is contained in:
Jesper Larsen 2014-02-08 18:20:22 +01:00 committed by Sebastian Dröge
parent f1c8de4bc2
commit 603714a405

View file

@ -827,7 +827,7 @@ _packetize_pmt (GstMpegTsSection * section)
if (stream->descriptors) { if (stream->descriptors) {
for (j = 0; j < stream->descriptors->len; j++) { 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; stream_length += descriptor->length + 2;
} }
} }