mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-17 22:06:41 +00:00
mpegtsmux: Handle zero-sized buffers correctly without going into an infinite loop
Fixes https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/issues/844
This commit is contained in:
parent
a171f30ab1
commit
bb135ba764
1 changed files with 1 additions and 1 deletions
|
@ -304,7 +304,7 @@ tsmux_stream_consume (TsMuxStream * stream, guint len)
|
|||
stream->cur_buffer_consumed += len;
|
||||
stream->bytes_avail -= len;
|
||||
|
||||
if (stream->cur_buffer_consumed == 0)
|
||||
if (stream->cur_buffer_consumed == 0 && stream->cur_buffer->size != 0)
|
||||
return;
|
||||
|
||||
if (GST_CLOCK_STIME_IS_VALID (stream->cur_buffer->pts)) {
|
||||
|
|
Loading…
Reference in a new issue