Add header transform tests, fix issue found

This commit is contained in:
Matt Nadareski
2020-12-18 21:18:27 -08:00
parent dc6bcc1b17
commit 4dde0dc956
4 changed files with 245 additions and 3 deletions

View File

@@ -123,7 +123,7 @@ namespace SabreTools.Skippers
long extsize = input.Length;
if ((Operation > HeaderSkipOperation.Bitswap && (extsize % 2) != 0)
|| (Operation > HeaderSkipOperation.Byteswap && (extsize % 4) != 0)
|| (Operation > HeaderSkipOperation.Bitswap && (StartOffset == null || StartOffset % 2 == 0)))
|| (Operation > HeaderSkipOperation.Bitswap && (StartOffset == null || StartOffset % 2 != 0)))
{
logger.Error("The stream did not have the correct size to be transformed!");
return false;