Fix deadlock in TS stream parser when encountering unknown track type
This commit is contained in:
parent
9d1b3cfe98
commit
6993133e62
1 changed files with 4 additions and 0 deletions
|
@ -223,6 +223,10 @@ namespace TS{
|
|||
return;
|
||||
}
|
||||
|
||||
if (!pidToCodec.count(tid)){
|
||||
return; // skip unknown codecs
|
||||
}
|
||||
|
||||
while(seenUnitStart[tid] > 1) {
|
||||
parsePES(tid);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue