mirror of
https://github.com/vgmstream/vgmstream.git
synced 2025-02-21 04:48:21 +01:00
Fix .wem with empty chunks
This commit is contained in:
parent
3f164f74c9
commit
29be8afbb9
@ -26,8 +26,8 @@ int next_chunk(chunk_t* chunk, STREAMFILE* sf) {
|
||||
if (chunk->type == 0xFFFFFFFF || chunk->size == 0xFFFFFFFF)
|
||||
return 0;
|
||||
|
||||
/* empty chunk with 0 size, seen in some formats (XVAG uses it as end marker, Wwise doesn't) */
|
||||
if (chunk->type == 0 || chunk->size == 0)
|
||||
/* empty chunk with 0 size is ok, seen in some formats (XVAG uses it as end marker, Wwise in JUNK) */
|
||||
if (chunk->type == 0 /*|| chunk->size == 0*/)
|
||||
return 0;
|
||||
|
||||
/* more chunks remain */
|
||||
|
Loading…
x
Reference in New Issue
Block a user