(VZY): dispose original stream.

This commit is contained in:
morkt 2017-10-28 11:47:39 +04:00
parent 883cbb2954
commit 4517bd55e8

View File

@ -56,7 +56,7 @@ namespace GameRes.Formats.BeF
(byte)'R', (byte)'I', (byte)'F', (byte)'F', header[4], header[5], header[6], header[7],
(byte)'W', (byte)'A', (byte)'V', (byte)'E', (byte)'f', (byte)'m', (byte)'t', (byte)' '
};
Stream riff = new StreamRegion (file.AsStream, 0x10, true);
Stream riff = new StreamRegion (file.AsStream, 0x10);
riff = new PrefixStream (header_bytes, riff);
var wav = new BinaryStream (riff, file.Name);
try