diff --git a/ArcFormats/AudioOGG.cs b/ArcFormats/AudioOGG.cs index 8d0f5e83..3661091a 100644 --- a/ArcFormats/AudioOGG.cs +++ b/ArcFormats/AudioOGG.cs @@ -164,9 +164,11 @@ namespace GameRes.Formats input = new StreamRegion (input, ogg_pos, section_size); break; } - file.Seek ((section_size + 1) & ~1, SeekOrigin.Current); + file.Seek ((section_size + 1) & ~1u, SeekOrigin.Current); } } + else if (file.Signature != this.Signature) + return null; return new OggInput (input); }