mirror of
https://github.com/vgmstream/vgmstream.git
synced 2025-01-19 08:07:23 +01:00
Ubi SB: stream_type 0x01 is always PCM for streams
This commit is contained in:
parent
7f8294de2e
commit
feeb3053f2
@ -2199,7 +2199,9 @@ static int parse_stream_codec(ubi_sb_header* sb) {
|
||||
if (sb->is_bnm || sb->version < 0x00000007) { /* bnm is ~v0 but some games have wonky versions */
|
||||
switch (sb->stream_type) {
|
||||
case 0x01:
|
||||
if (!set_default_codec_for_platform(sb))
|
||||
if (sb->is_streamed)
|
||||
sb->codec = RAW_PCM;
|
||||
else if (!set_default_codec_for_platform(sb))
|
||||
goto fail;
|
||||
break;
|
||||
|
||||
@ -2230,7 +2232,9 @@ static int parse_stream_codec(ubi_sb_header* sb) {
|
||||
} else if (sb->version < 0x000A0000) {
|
||||
switch (sb->stream_type) {
|
||||
case 0x01:
|
||||
if (!set_default_codec_for_platform(sb))
|
||||
if (sb->is_streamed)
|
||||
sb->codec = RAW_PCM;
|
||||
else if (!set_default_codec_for_platform(sb))
|
||||
goto fail;
|
||||
break;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user