mpegts: return early if packetizing short section
Short sections have 3 bytes of common header, while other sections have 8 bytes of common header. If packetizing common header of short section, we should stop after the first 3 bytes. https://bugzilla.gnome.org/show_bug.cgi?id=735653
This commit is contained in:
parent
3bbc945eb3
commit
355439206d
@ -1128,9 +1128,12 @@ _packetize_common_section (GstMpegtsSection * section, gsize length)
|
|||||||
GST_WRITE_UINT16_BE (data, (section->section_length - 3) | 0x7000);
|
GST_WRITE_UINT16_BE (data, (section->section_length - 3) | 0x7000);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!section->short_section)
|
/* short sections do not contain any further fields */
|
||||||
*data |= 0x80;
|
if (section->short_section)
|
||||||
|
return;
|
||||||
|
|
||||||
|
/* Set section_syntax_indicator bit since we do not have a short section */
|
||||||
|
*data |= 0x80;
|
||||||
data += 2;
|
data += 2;
|
||||||
|
|
||||||
/* subtable_extension - 16 bit uimsbf */
|
/* subtable_extension - 16 bit uimsbf */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user