mirror of
https://github.com/vgmstream/vgmstream.git
synced 2025-01-17 23:36:41 +01:00
Minor tweaks
This commit is contained in:
parent
24e9d17735
commit
437667b2dc
@ -177,11 +177,7 @@ VGMSTREAM * init_vgmstream_ea_schl_video(STREAMFILE *streamFile) {
|
||||
/* .dct: early-mid [ex. Need for Speed II SE (PC), FIFA 98 (PC)] */
|
||||
/* .mad: mid */
|
||||
/* .vp6: late */
|
||||
if (check_extensions(streamFile, "vp6")) {
|
||||
/* check initial movie block id */
|
||||
if (read_32bitBE(0x00, streamFile) != 0x4D566864) /* "MVhd" */
|
||||
goto fail;
|
||||
} else if (check_extensions(streamFile, "uv,dct")) {
|
||||
if (check_extensions(streamFile, "uv,dct")) {
|
||||
/* starts with audio header block */
|
||||
if (read_32bitBE(0x00, streamFile) != EA_BLOCKID_HEADER) /* "SCHl" */
|
||||
goto fail;
|
||||
@ -189,6 +185,10 @@ VGMSTREAM * init_vgmstream_ea_schl_video(STREAMFILE *streamFile) {
|
||||
/* check initial movie block id */
|
||||
if (read_32bitBE(0x00, streamFile) != 0x4D41446B) /* "MADk" */
|
||||
goto fail;
|
||||
} else if (check_extensions(streamFile, "vp6")) {
|
||||
/* check initial movie block id */
|
||||
if (read_32bitBE(0x00, streamFile) != 0x4D566864) /* "MVhd" */
|
||||
goto fail;
|
||||
} else {
|
||||
goto fail;
|
||||
}
|
||||
@ -381,7 +381,7 @@ VGMSTREAM * init_vgmstream_ea_abk(STREAMFILE *streamFile) {
|
||||
if (target_entry_offset == 0)
|
||||
goto fail;
|
||||
|
||||
/* 0x00: type (0x00 - normal, 0x01 - streamed, 0x02 - streamed looped */
|
||||
/* 0x00: type (0x00 - normal, 0x01 - streamed, 0x02 - streamed looped) */
|
||||
/* 0x01: ??? */
|
||||
/* 0x04: index for normal sounds, offset for streamed sounds */
|
||||
/* 0x08: loop offset for streamed sounds */
|
||||
|
Loading…
x
Reference in New Issue
Block a user