Avoid NPE in ContinuityFixer

This commit is contained in:
0xboobface 2018-11-10 15:03:35 +01:00
parent c8af7a409a
commit eb3c878b03
1 changed files with 4 additions and 0 deletions

View File

@ -85,6 +85,10 @@ public class ContinuityFixer {
* @param tsPacket The packet to fix.
*/
public void fixContinuity(MTSPacket tsPacket) {
if(tsPacket == null) {
return;
}
int pid = tsPacket.getPid();
allPackets.put(pid, tsPacket);
if (!firstPacketsOfCurrentSource.containsKey(pid)) {