Fixed stream size for Atrac3+ in BNK

This commit is contained in:
NicknineTheEagle 2018-07-22 21:40:46 +03:00
parent 5b5f5036e0
commit 5ee34e32ff

View File

@ -708,7 +708,8 @@ static VGMSTREAM * init_vgmstream_ea_variable_header(STREAMFILE *streamFile, ea_
}
else
{
vgmstream->codec_data = init_ffmpeg_offset(streamFile, start_offset, get_streamfile_size(streamFile) - start_offset);
size_t riff_size = read_32bitLE(start_offset + 0x04, streamFile) + 0x08;
vgmstream->codec_data = init_ffmpeg_offset(streamFile, start_offset, riff_size);
if (!vgmstream->codec_data) goto fail;
}