From 08a21c09c0303b28fce1c0b2cf4221265c43d547 Mon Sep 17 00:00:00 2001 From: Thulinma Date: Tue, 13 Feb 2018 09:59:09 +0100 Subject: [PATCH] Improved PES parser in TS::Stream to better handle high bit rate streams --- lib/ts_stream.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ts_stream.cpp b/lib/ts_stream.cpp index 9e305fa6..6e7fcfdb 100644 --- a/lib/ts_stream.cpp +++ b/lib/ts_stream.cpp @@ -208,7 +208,7 @@ namespace TS{ return; } - if(seenUnitStart[tid] > 1) { + while(seenUnitStart[tid] > 1) { parsePES(tid); } }