Various TS improvements

This commit is contained in:
Thulinma 2020-06-25 00:18:23 +02:00
parent 3d26741148
commit 1fff195f77
7 changed files with 110 additions and 84 deletions

View file

@ -317,6 +317,7 @@ namespace TS{
}
if (psCache->size() <= 1){
if (!finished){FAIL_MSG("No PES packets to parse");}
seenUnitStart[tid] = 0;
return;
}
// Find number of packets before unit Start
@ -336,6 +337,7 @@ namespace TS{
}
if (!finished && curPack == psCache->end()){
FAIL_MSG("No PES packets to parse (%" PRIu32 ")", seenUnitStart[tid]);
seenUnitStart[tid] = 0;
return;
}