Commit d93d62e2 authored by Sebastian Dröge's avatar Sebastian Dröge 🍵 Committed by Tim-Philipp Müller

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

Fixes #844
parent 78f35b40
......@@ -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