mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-24 20:22:41 +01:00
More validation for #8186
This commit is contained in:
parent
55f6793a65
commit
b70f6ed2e4
@ -128,10 +128,13 @@ namespace Nikse.SubtitleEdit.Core.ContainerFormats.TransportStream
|
||||
_dataBuffer[i + j] = TeletextHamming.Reverse8[_dataBuffer[i + j]];
|
||||
}
|
||||
|
||||
var pageNumber = Teletext.GetPageNumber(new Teletext.TeletextPacketPayload(_dataBuffer, i));
|
||||
if (!pages.Contains(pageNumber) && pageNumber > 0)
|
||||
if (_dataBuffer.Length > i + 43)
|
||||
{
|
||||
pages.Add(pageNumber);
|
||||
var pageNumber = Teletext.GetPageNumber(new Teletext.TeletextPacketPayload(_dataBuffer, i));
|
||||
if (!pages.Contains(pageNumber) && pageNumber > 0)
|
||||
{
|
||||
pages.Add(pageNumber);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user