diff --git a/gst-libs/gst/mpegts/gstmpegtssection.c b/gst-libs/gst/mpegts/gstmpegtssection.c index 319b5b00f8..dc62ac3ee1 100644 --- a/gst-libs/gst/mpegts/gstmpegtssection.c +++ b/gst-libs/gst/mpegts/gstmpegtssection.c @@ -1128,9 +1128,12 @@ _packetize_common_section (GstMpegtsSection * section, gsize length) GST_WRITE_UINT16_BE (data, (section->section_length - 3) | 0x7000); } - if (!section->short_section) - *data |= 0x80; + /* short sections do not contain any further fields */ + if (section->short_section) + return; + /* Set section_syntax_indicator bit since we do not have a short section */ + *data |= 0x80; data += 2; /* subtable_extension - 16 bit uimsbf */