mirror of
https://github.com/vgmstream/vgmstream.git
synced 2024-11-28 08:20:54 +01:00
Fixed ADX loop flag issue for files with 0 for both loop and end sample values.
git-svn-id: https://vgmstream.svn.sourceforge.net/svnroot/vgmstream@962 51a99a44-fe44-0410-b1ba-c3e57ba2b86b
This commit is contained in:
parent
83e098b83d
commit
fadf30dcfc
@ -83,7 +83,11 @@ VGMSTREAM * init_vgmstream_adx(STREAMFILE *streamFile) {
|
||||
|
||||
header_type = meta_ADX_04;
|
||||
if (stream_offset-ainf_info_length-6 >= 0x38) { /* enough space for loop info? */
|
||||
loop_flag = (read_32bitBE(0x24,streamFile) != 0);
|
||||
if (read_32bitBE(0x24,streamFile) == 0xFFFEFFFE)
|
||||
loop_flag = 0;
|
||||
else
|
||||
loop_flag = (read_32bitBE(0x24,streamFile) != 0);
|
||||
|
||||
loop_start_sample = read_32bitBE(0x28,streamFile);
|
||||
loop_start_offset = read_32bitBE(0x2c,streamFile);
|
||||
loop_end_sample = read_32bitBE(0x30,streamFile);
|
||||
|
Loading…
Reference in New Issue
Block a user