mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Add header transform tests, fix issue found
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user