Commit bb135ba7 authored by Sebastian Dröge's avatar Sebastian Dröge 🍵 Committed by Nicolas Dufresne
Browse files

mpegtsmux: Handle zero-sized buffers correctly without going into an infinite loop

Fixes gstreamer/gst-plugins-bad#844
parent a171f30a
......@@ -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)) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment