mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 04:56:14 +00:00
mpegts: Fix Logical Channel Descriptor parsing
No wonder we were getting garbage ...
This commit is contained in:
parent
2bbf4ec96c
commit
7852430934
1 changed files with 1 additions and 1 deletions
|
@ -968,7 +968,7 @@ gst_mpegts_descriptor_parse_logical_channel (const GstMpegTsDescriptor *
|
||||||
/* This descriptor loop can be empty, no size check required */
|
/* This descriptor loop can be empty, no size check required */
|
||||||
__common_desc_checks (descriptor, GST_MTS_DESC_DTG_LOGICAL_CHANNEL, 0, FALSE);
|
__common_desc_checks (descriptor, GST_MTS_DESC_DTG_LOGICAL_CHANNEL, 0, FALSE);
|
||||||
|
|
||||||
data = (guint8 *) descriptor->data;
|
data = (guint8 *) descriptor->data + 2;
|
||||||
res->nb_channels = descriptor->length / 4;
|
res->nb_channels = descriptor->length / 4;
|
||||||
|
|
||||||
for (i = 0; i < res->nb_channels; i++) {
|
for (i = 0; i < res->nb_channels; i++) {
|
||||||
|
|
Loading…
Reference in a new issue