mirror of
https://github.com/samsonjs/media.git
synced 2026-03-27 09:45:47 +00:00
Avoid setting a PMT reader if one exists for the same PID
This change should only affect HLS, where we don't remove the PAT reader after reading a PAT. Issue: #7756 PiperOrigin-RevId: 327008936
This commit is contained in:
parent
f2d2e6475a
commit
4cd8f00d72
1 changed files with 4 additions and 2 deletions
|
|
@ -484,8 +484,10 @@ public final class TsExtractor implements Extractor {
|
|||
patScratch.skipBits(13); // network_PID (13)
|
||||
} else {
|
||||
int pid = patScratch.readBits(13);
|
||||
tsPayloadReaders.put(pid, new SectionReader(new PmtReader(pid)));
|
||||
remainingPmts++;
|
||||
if (tsPayloadReaders.get(pid) == null) {
|
||||
tsPayloadReaders.put(pid, new SectionReader(new PmtReader(pid)));
|
||||
remainingPmts++;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (mode != MODE_HLS) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue