mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-20 08:41:07 +00:00
mpegtspacketizer: Reset values before parsing each section
This commit is contained in:
parent
ab4bb225bd
commit
ee300b6c33
1 changed files with 7 additions and 1 deletions
|
@ -928,7 +928,7 @@ mpegts_packetizer_push_section (MpegTSPacketizer2 * packetizer,
|
||||||
MpegTSPacketizerStream *stream;
|
MpegTSPacketizerStream *stream;
|
||||||
gboolean long_packet;
|
gboolean long_packet;
|
||||||
guint8 pointer = 0, table_id;
|
guint8 pointer = 0, table_id;
|
||||||
guint16 subtable_extension = 0;
|
guint16 subtable_extension;
|
||||||
gsize to_read;
|
gsize to_read;
|
||||||
guint section_length;
|
guint section_length;
|
||||||
/* data points to the current read location
|
/* data points to the current read location
|
||||||
|
@ -1052,6 +1052,12 @@ accumulate_data:
|
||||||
}
|
}
|
||||||
|
|
||||||
section_start:
|
section_start:
|
||||||
|
subtable_extension = 0;
|
||||||
|
version_number = 0;
|
||||||
|
last_section_number = 0;
|
||||||
|
section_number = 0;
|
||||||
|
table_id = 0;
|
||||||
|
|
||||||
/* FIXME : We need at least 3 bytes (or 8 for long packets) with current algorithm :(
|
/* FIXME : We need at least 3 bytes (or 8 for long packets) with current algorithm :(
|
||||||
* We might end up losing sections that start across two packets (srsl...) */
|
* We might end up losing sections that start across two packets (srsl...) */
|
||||||
if (data > packet->data_end - 3 || *data == 0xff) {
|
if (data > packet->data_end - 3 || *data == 0xff) {
|
||||||
|
|
Loading…
Reference in a new issue