mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-23 15:48:23 +00:00
mpegtsmux: reset pes_bytes_written when starting to write new PES packet
In case of an unbounded packet (video usually), pes_bytes_written was no reset. https://bugzilla.gnome.org/show_bug.cgi?id=748507
This commit is contained in:
parent
ab5aab60a9
commit
f9ef150652
1 changed files with 3 additions and 1 deletions
|
@ -316,8 +316,10 @@ tsmux_stream_consume (TsMuxStream * stream, guint len)
|
|||
/* FIXME: As a hack, for unbounded streams, start a new PES packet for each
|
||||
* incoming packet we receive. This assumes that incoming data is
|
||||
* packetised sensibly - ie, every video frame */
|
||||
if (stream->cur_pes_payload_size == 0)
|
||||
if (stream->cur_pes_payload_size == 0) {
|
||||
stream->state = TSMUX_STREAM_STATE_HEADER;
|
||||
stream->pes_bytes_written = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue