mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +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)
|
patScratch.skipBits(13); // network_PID (13)
|
||||||
} else {
|
} else {
|
||||||
int pid = patScratch.readBits(13);
|
int pid = patScratch.readBits(13);
|
||||||
tsPayloadReaders.put(pid, new SectionReader(new PmtReader(pid)));
|
if (tsPayloadReaders.get(pid) == null) {
|
||||||
remainingPmts++;
|
tsPayloadReaders.put(pid, new SectionReader(new PmtReader(pid)));
|
||||||
|
remainingPmts++;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (mode != MODE_HLS) {
|
if (mode != MODE_HLS) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue