Fixed crash in ts parser - thx Marilson :)

This commit is contained in:
niksedk 2014-11-23 09:20:35 +01:00
parent 35fe92d3d7
commit 7d481f5f49

View File

@ -100,7 +100,7 @@ namespace Nikse.SubtitleEdit.Logic.TransportStream
}
}
if (AdaptationFieldExtensionFlag)
if (AdaptationFieldExtensionFlag && index < packetBuffer.Length)
{
AdaptationFieldExtensionLength = packetBuffer[index];
}