From 1ef4c2f58fcf551bf0a7609547117aafa4abbbc7 Mon Sep 17 00:00:00 2001 From: morkt Date: Fri, 4 Mar 2016 06:21:46 +0400 Subject: [PATCH] fixed MIO header eof condition. --- ArcFormats/Entis/AudioMIO.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ArcFormats/Entis/AudioMIO.cs b/ArcFormats/Entis/AudioMIO.cs index 096ee8de..e5bf124e 100644 --- a/ArcFormats/Entis/AudioMIO.cs +++ b/ArcFormats/Entis/AudioMIO.cs @@ -97,10 +97,10 @@ namespace GameRes.Formats.Entis throw new InvalidFormatException(); m_stream_pos = 0x50 + section.Length; int header_size = (int)section.Length; - while (header_size > 8) + while (header_size > 0x10) { section = erif.ReadSection(); - header_size -= 8; + header_size -= 0x10; if (section.Length <= 0 || section.Length > header_size) break; if ("SoundInf" == section.Id)