Fix crash in teletext parsing - thx xylographe :)

This commit is contained in:
Nikolaj Olsson 2020-01-02 18:30:26 +01:00
parent 46d7883712
commit 2b77d7ed6a

View File

@ -161,6 +161,11 @@ namespace Nikse.SubtitleEdit.Core.TransportStream
foreach (var packetId in teletextPesList.Keys) // teletext from PES packets
{
if (!teletextPages.ContainsKey(packetId))
{
continue;
}
foreach (var page in teletextPages[packetId].OrderBy(p => p))
{
var pageBcd = Teletext.DecToBec(page);