mirror of
https://github.com/vgmstream/vgmstream.git
synced 2024-11-12 01:30:49 +01:00
Merge pull request #1539 from ahigerd/alh/no-mpeg-build
Fix build without USE_MPEG
This commit is contained in:
commit
4cf9cc3450
@ -84,6 +84,7 @@ VGMSTREAM* init_vgmstream_seg(STREAMFILE* sf) {
|
||||
case 0x78623300: { /* "xb3\0" */
|
||||
/* no apparent flag */
|
||||
if (read_u32be(start_offset, sf) == 0) {
|
||||
#ifdef VGM_USE_MPEG
|
||||
/* Eragon (PC) */
|
||||
start_offset += 0x20A; /* one frame */
|
||||
|
||||
@ -92,6 +93,9 @@ VGMSTREAM* init_vgmstream_seg(STREAMFILE* sf) {
|
||||
vgmstream->codec_data = init_mpeg_custom(sf, start_offset, &vgmstream->coding_type, channels, MPEG_STANDARD, &cfg);
|
||||
if (!vgmstream->codec_data) goto fail;
|
||||
vgmstream->layout_type = layout_none;
|
||||
#else
|
||||
goto fail;
|
||||
#endif
|
||||
}
|
||||
else {
|
||||
/* The Spiderwick Chronicles (X360) */
|
||||
|
Loading…
Reference in New Issue
Block a user